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

Code to Show and Appointment in the Edit Form

2 Answers 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dan Lehmann
Top achievements
Rank 1
Dan Lehmann asked on 01 Jul 2011, 09:36 PM
Hi,
Is there to cause a certain appointment to open in the Advanced Form onPageLoad?  Either with the codebehind or with javascript will work. If nothing else, Is there a way to simulate a click on an appointment in the collection?

Thanks,
Dan

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 04 Jul 2011, 07:30 AM
Hi Dan Lehmann,

As I understand you need to show the advanced insert form by clicking on a button that is outside of the RadScheduler. If so you can use the ShowAdvancedInsertForm method in the click handler of the button, e.g.:
protected void Button2_Click(object sender, ImageClickEventArgs e)
        {
            RadScheduler1.ShowAdvancedInsertForm(DateTime.Now);
        }

Please let me know whether I got your requirement.

Greetings,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Dan Lehmann
Top achievements
Rank 1
answered on 05 Jul 2011, 02:42 PM
Almost,
I need the Edit form not the Insert form. I found the api method and got it to work with:
RadScheduler1.ShowAdvancedEditForm(Scheduler.Appointments.FindByID(AptID))

Thanks,
Dan
Tags
Scheduler
Asked by
Dan Lehmann
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Dan Lehmann
Top achievements
Rank 1
Share this question
or