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

[Solved] Launching AdvEdit Form Outside of Scheduler Control

1 Answer 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
James Legan
Top achievements
Rank 1
James Legan asked on 04 Dec 2009, 06:28 PM
I have the need to be able to launch the edit form of the scheduler from a control other than the scheduler itself (a button in this case).

The code below retrieves the appointment, etc... and all of it works perfectly in the debugger. I thought all I needed to call was editappointment, but the advedit template is never shown and the code behind method (form created, etc...) are never hit.

What am I doing that is so painfully wrong that I cannot see it? :)

                function Huh(sender, e) {  
                      
                    // Find the scheduler  
                    var rsScheduler = $find('ctl00_ContentPlaceHolder1_rsScheduler');  
 
                    // Get the variable for the active lease  
                    var nActiveLeaseID = document.getElementById("ctl00_ContentPlaceHolder1_m_nActiveLease");  
 
                    // Get the appointments from the schduler  
                    var Appointments = rsScheduler.get_appointments();  
 
                    // Get our appointment  
                    var MyAppt = Appointments.findByID(nActiveLeaseID.value);  
                      
                    //Edit the appointment  
                    rsScheduler.editAppointment(MyAppt);  
                } 

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 09 Dec 2009, 03:21 PM
Hi James Legan,

I tried to reproduce the problem, but to no avail. The editAppointment method is working as expected. Can you please check if the MyAppt really points to a valid appointment? 

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
James Legan
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or