This question is locked. New answers and comments are not allowed.
There used to be an article at http://www.telerik.com/help/silverlight/radscheduler-how-to-access-the-controls-in-the-editappointmentdialog.html that sounded exactly like what I needed, but the link is dead now. Has it moved?
Regardless, I have a custom appointment dialog with a RadListView of resources I would like to filter based on a RadComboBox in the same dialog (in an MVVM way). I can pre-populate the lists during Appointment_Creating and Appointment_Editing just fine, but how would I alter the values of those controls while the dialog is open? I'm using EventTriggers for other activities and that seemed reasonable, but those are a) outside of the appointment dialog itself (which is a very magical beast indeed) and b) I'm just not understanding how to reference the controls in the currently open dialog.
Regardless, I have a custom appointment dialog with a RadListView of resources I would like to filter based on a RadComboBox in the same dialog (in an MVVM way). I can pre-populate the lists during Appointment_Creating and Appointment_Editing just fine, but how would I alter the values of those controls while the dialog is open? I'm using EventTriggers for other activities and that seemed reasonable, but those are a) outside of the appointment dialog itself (which is a very magical beast indeed) and b) I'm just not understanding how to reference the controls in the currently open dialog.
<
telerik:RadComboBox
x:Name
=
"filter_Devices_List"
Grid.Row
=
"1"
Grid.Column
=
"2"
Margin
=
"5,5,10,0"
ItemsSource
=
"{Binding Occurrence.Appointment.LocationFilter}"
SelectedItem
=
"{Binding Occurrence.Appointment.SelectedLocationFilter, Mode=TwoWay}"
SelectedValuePath
=
"ID"
DisplayMemberPath
=
"Name"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"SelectionChanged"
>
<
ei:CallMethodAction
TargetObject
=
"{Binding}"
MethodName
=
"UpdateLocationFilter"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
telerik:RadComboBox
>
<
telerik:RadListBox
x:Name
=
"_available_Devices_List"
Grid.Row
=
"2"
Grid.Column
=
"2"
Margin
=
"5,0,10,5"
ItemTemplate
=
"{StaticResource AvailableDevicesListItemTemplate}"
ItemsSource
=
"{Binding Occurrence.Appointment.AvailableDevices}"
SelectedItem
=
"{Binding Source={StaticResource ReservationDialogViewModel}, Path=SelectedAvailableDevice, Mode=TwoWay}"
SelectedValuePath
=
"ID"
></
telerik:RadListBox
>