I've been reading a bunch of forum posts from 2011 about Multi Select in the ComboBox being on the dev track.
Is it here yet? How can I do multiselect in a RadComboBox (WPF) and read back the selected items in codebehind?
Here is what I have so far (from those old posts)
I load the control in codebehind like this:
This almost works, it displays my items and lets me check the boxes, but I can't figure out how to read the selected items from codebehind.
Help?
Is it here yet? How can I do multiselect in a RadComboBox (WPF) and read back the selected items in codebehind?
Here is what I have so far (from those old posts)
<
DataTemplate
x:Key
=
"RadComboBoxItemTemplate"
>
<
CheckBox
Content
=
"{Binding}"
IsChecked
=
"{Binding Path=IsSelected,Mode=TwoWay}"
Height
=
"16"
HorizontalAlignment
=
"Left"
Margin
=
"2"
VerticalAlignment
=
"Top"
/>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"SelectionBoxTemplate"
>
<
TextBlock
Text
=
"{Binding SelectedItemsText,Mode=TwoWay}"
/>
</
DataTemplate
>
<
telerik:RadComboBox
Name
=
"cb_Others"
ItemTemplate
=
"{StaticResource RadComboBoxItemTemplate}"
SelectionBoxTemplate
=
"{StaticResource SelectionBoxTemplate}"
Grid.Column
=
"1"
Grid.Row
=
"3"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Margin
=
"3,3,6,3"
/>
I load the control in codebehind like this:
cb_Others.ItemsSource = AvailableOthers; // where AvailablesOthers is a List<
string
>
This almost works, it displays my items and lets me check the boxes, but I can't figure out how to read the selected items from codebehind.
Help?