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

Appointment Binding

2 Answers 62 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 28 Aug 2012, 03:36 AM
Hi,

I've created a new object that derives from Appointment (named RequestAppointment) and overrides the "End" property (I've made sure to include OnPropertyChange("End") in it's set accessor). When I change this value I would expect the appointment on my ScheduleView to update, and when I breakpoint the code it steps through the set accessor then the get accessor is called and the "End" property value being returned is what I expect, yet it does not reflect in my ScheduleView.

I am bound to a collection of RequestAppointment objects in a viewmodel (xaml: AppointmentsSource="{Binding Appointments}"). Can I check with you that the end date of an appointment in ScheduleView is indeed bound to the "End" property of the appointment object and if I change "End" and raise property-changed on it I should expect the ScheduleView to update?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Ventzi
Telerik team
answered on 03 Sep 2012, 08:00 AM
Hello Peter,

We are sorry for delayed answer.

In order to update the RadScheduleView, you need to call BeginEdit and pass it the edited appointment. After that you have to call Commit to save all changes. I am sending you a sample project attached, which demonstrate this behavior.

Kind regards,
Ventzi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Peter
Top achievements
Rank 1
answered on 04 Sep 2012, 03:38 AM
Thanks Ventzi.
Tags
ScheduleView
Asked by
Peter
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Peter
Top achievements
Rank 1
Share this question
or