Access DialogViewModel Properties

2 posts, 0 answers
  1. Brandon
    Brandon avatar
    15 posts
    Member since:
    Nov 2009

    Posted 27 Jul 2015 Link to this post

    I've added a new property to my SqlAppointment class called 'Service Code'.  When this property changes I'd like to filter down one of my resources lists to only those 'Providers' that can service that 'Service Code'. 

    How can I access the ResourceType collection from within the SqlAppointment class? 

    Is there a way to override the AppointmentDialogViewModel so that I can access the properties there?

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 29 Jul 2015 Link to this post

    Hi Brandon,

    Unfortunately, the AppointmentDialogViewModel is not allowed to be changed or modified. However, you could create your own ViewModel and use it via XAML

    Still you are able to reach the Appointment class using the Occurence property of the AppointmentDialogViewModel and subsequently the Appointment property of the Occurrence. Please, check the following article from our help documentation that demonstrates how to reach a property placed inside your custom Appointment using the described above approach:
    http://docs.telerik.com/devtools/wpf/controls/radscheduleview/features/appointments/custom-appointment#creating-a-custom-appointment-dialog

    You could easily bind to your custom properties placed inside your custom Appointment using Occurrence.Appointment.

    Hopes this helps.

    Regards,
    Nasko
    Telerik
    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. UI for WPF is Visual Studio 2017 Ready
Back to Top