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

Access DialogViewModel Properties

1 Answer 80 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 27 Jul 2015, 08:42 PM

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?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 29 Jul 2015, 12:42 PM
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
Tags
ScheduleView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or