This question is locked. New answers and comments are not allowed.
Hi,
I need to be able to disable/enable certain resource ComboBoxes under certain conditions and also place them in different locations within the EditAppointmentDialog. For those reasons, I'm not able to use the item control that automatically adds a resource ComboBox for each resource type.
I am able to add a ComboBox and display SqlResources in it as selectable items, but I cannot bind the selected item to the resource of the appointment being edited.
Here is the ComboBox from the EditAppointmentDialogStyle:
"Staff" is the SqlResourceType of the appointment resource I'm trying to bind to. The static resource "scheduleViewViewModel" is the name of the view model instance, and "StaffResources" is a collection of all the SqlResources that have the "Staff" SqlResourceType.
The binding for the ItemsSource property works, but the binding for the SelectedItem property does not.
Your help is much appreciated,
Thanks
- Aaron
I need to be able to disable/enable certain resource ComboBoxes under certain conditions and also place them in different locations within the EditAppointmentDialog. For those reasons, I'm not able to use the item control that automatically adds a resource ComboBox for each resource type.
I am able to add a ComboBox and display SqlResources in it as selectable items, but I cannot bind the selected item to the resource of the appointment being edited.
Here is the ComboBox from the EditAppointmentDialogStyle:
<
telerik:RadComboBox
Grid.Row
=
"5"
Grid.Column
=
"1"
Margin
=
"3"
SelectedItem="{Binding Occurrence.Appointment.Staff, Mode=TwoWay}"
ItemsSource="{Binding Source={StaticResource scheduleViewViewModel}, Path=StaffResources, Mode=OneWay}" />
"Staff" is the SqlResourceType of the appointment resource I'm trying to bind to. The static resource "scheduleViewViewModel" is the name of the view model instance, and "StaffResources" is a collection of all the SqlResources that have the "Staff" SqlResourceType.
The binding for the ItemsSource property works, but the binding for the SelectedItem property does not.
Your help is much appreciated,
Thanks
- Aaron