This is a migrated thread and some comments may be shown as answers.

Saving user id and other information with appointment

3 Answers 47 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 17 Jun 2012, 10:38 PM
I need to save the user id for the appointment. Rather than choose a user from the dropdown when making the appointment, I need to add a user id from a querystring. This scenario would be choosing a patient on the patient list page to the scheduler page with the patients user id to save with the appointment. 
What event would I use to save the info in C#?
I would like to save other information to my schedule table in SQL regarding the appointment. But I cant seem to find the best practice to do all of this.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Jun 2012, 12:31 PM
Hi Rick,

The approach I recommend is to use the advanced form templates as shown in this demo. Let me know if you need further help with this.

Regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Rick
Top achievements
Rank 1
answered on 18 Jun 2012, 02:59 PM
thanks for the info.
As I read more I thought maybe for my need of a UserId to be saved with the appointment from a querystring, I would put the code in the
protected void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.AppointmentInsertEventArgs e) {
            string userId;
 
            userId = Request.QueryString["userid"];
but how do you insert the userid with the default fields of start, end, subject?



0
Peter
Telerik team
answered on 20 Jun 2012, 02:16 PM
Hi Rick,

Please, refer to this kb article.
 
In your case, what I recommend you do once you define resource types, is to handle FormCreated, find the resource RadComboBox and set its SelectedIndex based on the query string value:

RadComboBox resRoomDDL = (RadComboBox)e.Container.FindControl("ResRoom"); 
resRoomDDL.SelectedIndex = Request.QueryString["userid"];



Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Rick
Top achievements
Rank 1
Answers by
Peter
Telerik team
Rick
Top achievements
Rank 1
Share this question
or