Appointment Binding

3 posts, 1 answers
  1. Peter
    Peter avatar
    95 posts
    Member since:
    Mar 2009

    Posted 27 Aug 2012 Link to this post

    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. Answer
    Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 03 Sep 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Peter
    Peter avatar
    95 posts
    Member since:
    Mar 2009

    Posted 03 Sep 2012 Link to this post

    Thanks Ventzi.
Back to Top