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

[Solved] ContextMenu - refresh Scheduler

3 Answers 173 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
f
Top achievements
Rank 1
f asked on 23 Jan 2008, 06:38 AM
Hi ,

I've followed your online article about ContextMenu integration.
Eeverything goes well until I want to refresh the scheduler after I click on one contextmenu item.
It seems that the scheduler is not refreshing although I hid database and called Scheduler.Databind()

Thanks,
Florin

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Jan 2008, 03:12 PM
Hi Florin,

Can you send us the code of your implementation or, better, open a support ticket and attach there a small working project which demonstrates the problem?


Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
f
Top achievements
Rank 1
answered on 24 Jan 2008, 06:42 AM
Hi Peter,

As simple as possible, from your Sample WebSite Solution.

I've changed the  ContextMenu/DefaultCS.aspx.cs file.

 RadAjaxManager1_AjaxRequest {
...
switch (command)
                {
                    case "Delete":
                        apt.Subject="Subject changed";   
                        //RadScheduler1.DeleteAppointment(apt, true);
                        break;
....
}

Thanks,
Florin
0
Peter
Telerik team
answered on 24 Jan 2008, 12:19 PM
Hi Florin,

I got it. Thanks for being more specific and for sending sample code.

However, this is the expected behavior, becase even if you change the Subject of the appointment, neither insert nor update event occurs and the changes are not reflected in the database.

You can use the following workaround if you need to change the appointment's Subject.

switch (command)  
                {  
                    case "Delete":                        
                        Appointment updatedApp = apt;  
                        updatedApp.Subject = "Subject changed";  
                        RadScheduler1.DeleteAppointment(apt, true);  
                        RadScheduler1.InsertAppointment(updatedApp);  
                        break



Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
f
Top achievements
Rank 1
Answers by
Peter
Telerik team
f
Top achievements
Rank 1
Share this question
or