Bind to SelectedAppointments

3 posts, 1 answers
  1. Cameron
    Cameron avatar
    11 posts
    Member since:
    May 2015

    Posted 07 Sep 2015 Link to this post


     I am using a custom AppointmentSelectionBehaviour to prevent the user from selecting Appointments with more than 2 different resource types. This works correctly. The problem is that I wish to bind to the selected appointments. There is a property on the RadScheduleView called "SelectedAppointments" but I am not able to bind to it. Am I doing something wrong? I want to be able to modify the selected appointments in my view model. 


  2. Answer
    Nasko avatar
    556 posts

    Posted 08 Sep 2015 Link to this post

    Hello Cameron,

    The SelectedAppointments collection of RadScheduleView is a read-only dependency property that cannot be set and thus it cannot be bound to the ViewModel's property.

    What we could suggest you is to use the EventToCommandBehavior and bound the AppointmentSelectionChanged event to a Command inside the ViewModel. So, every time an Appointment or a collection of Appointments gets selected the command will be called and inside t you will be able to retrieve all the selected appointments.

    We have created a sample project that demonstrates that approach and you could run and evaluate it.

    We hope this will help you.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Cameron
    Cameron avatar
    11 posts
    Member since:
    May 2015

    Posted 08 Sep 2015 in reply to Nasko Link to this post

    Hey Nasko,

     Thanks for that, it works great.


Back to Top