I've created a custom AppointmentDialogViewModel - "CalendarDialogViewModel" - and I'm trying to bind to it from the control template of the RadScheduleView's Edit Appointment Dialog.
In the constructor for my view - "ucCalendarView" - I'm instantiating the dialog's view-model as a private field in the view's code-behind:
This is how I'm setting "_calendarDialogViewModel" as the dialog's DataContext:
"controlTemplateRootGrid" is the Grid immediately inside the "EditAppointmentTemplate" ControlTemplate. I have a RadComboBox inside this Grid and its SelectedItem property is bound like this:
Now when I create a new appointment, the following method in my CalendarDialogViewModel executes.
But when the Edit
Appointment Dialog appears, the RadComboBox has no selected item. I've tried a number of different things with
no success as yet. I'm trying to figure out how I should set the Edit Appointment dialog's DataContext to my custom view-model and how to do the data binding.