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

[Solved] Scheduler Update Command Problem

2 Answers 157 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 20 Aug 2007, 12:36 PM
Hi,

I have used scheduler in my application. I am facing problem in update event. When I click on event and update description in the wizard and when click on the update button, it fetches old data from wizard.
So, How can I update data? Code is as below.

Protected Sub schProject_AppointmentUpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentUpdateCommandEventArgs) Handles schProject.AppointmentUpdateCommand 
 
With e.Appointment 
            ScheduleID = Integer.Parse(.ID) 
            ProjectID = Integer.Parse(.Resources(0).Key(0))  
            ProjectName = .Subject 
            StartDate = .Start 
            EndDate = .End 
            ProjectNotes = "" 
            RecurrenceRule = .RecurrenceRule 
            RecurrenceRuleParentID = .RecurrenceParentID 
End With 
 
Dim blnUpdate As Boolean = UpdateSchedule() 
 
End Sub 

Please help me to solve this.

Thanks,
Dhaval

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 21 Aug 2007, 05:58 AM
Hi Dhaval,

The AppointmentUpdateCommandEventArgs class holds references to both the original and the modified instances of the appointment. To access the new data you should use the ModifiedAppointment property.  Sorry for not making that clear in the documentation, it will get better for the official release.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dhaval
Top achievements
Rank 1
answered on 21 Aug 2007, 06:46 AM
Hi Tsvetomir Tsonev,

Many thanks for your reply. It works for me.

Regards,
Dhaval
Tags
Scheduler
Asked by
Dhaval
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Dhaval
Top achievements
Rank 1
Share this question
or