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

Advanced Form - Auto load modal?

2 Answers 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin Price
Top achievements
Rank 1
Kevin Price asked on 17 Jun 2010, 08:36 PM
I have an application using the advanced form and all is working rather well :)
My question is this - the customer has hinted they are going to want to be able to open the schedule page and have it automatically load an appointment in the edit mode of the advanced form. Any ideas? Suggestions?

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 18 Jun 2010, 10:28 AM
Hi Kevin,

You can use the ShowAdvancedEditForm method to achieve this:
protected void Page_Load(object sender, EventArgs e)
   {
       RadScheduler1.DataBind();
       Appointment a = RadScheduler1.Appointments.FindByID(16);
       if(a != null)
           RadScheduler1.ShowAdvancedEditForm(a);    
   }

Note that you need to call DataBind() first.

Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kevin Price
Top achievements
Rank 1
answered on 18 Jun 2010, 04:45 PM
I was able to get this working, but for some reason FindById failed - happens in another page as well, but have a work around for that.

Thanks!
Tags
Scheduler
Asked by
Kevin Price
Top achievements
Rank 1
Answers by
Peter
Telerik team
Kevin Price
Top achievements
Rank 1
Share this question
or