I have a RadComboBox thats bind to an Enum list like so
<telerik:RadComboBox HorizontalAligment="Streatch"
x:Nmae="RadComboBox"
HorizontalAligmentContent="Left"
Margin ="0 0 10 0"
StayOpenOnEdit="True"
AllowMultipleSelection= "True"
ItemSource="{Binding SignalTypes}"
behaviors:SelectedItemsBinding.SourceList = "{Binding SelectedSignalTypes}"
BorderThickness ="1"
VerticalContentAligment="Center"
CanAutocompleteSelectItems="True"
EmptyTexy =" Select Signal Type"
TextSearchMode="Contains"
>
<telerik:RadComboBox.MultipleSelectionBoxTemplate>
<DataTemplate>
<TextBlock Text="{Binding ElementName=RadComboBox , Path=SelectionBoxItem, Converter={StaticResource EnumValueToDisplayTextConverter}"/>
</DataTemplate>
</telerik:RadComboBox.MultipleSelectionBoxTemplate>
</telerik:RadComboBox>
Where SourceList is MultiSelector and EnumValueToDisplayTextConverter is a IValueConverter which convert from Enum to its corresponding DescriptonAttribute
My Problem is that in the converter value I'm a getting a string list, separated by the separator (i.e item1, item2, etc.)
and im excepting 1 item inside my convertor, therefore my converter failed and I don't see any items at all at SelectionBox
i tried to use ItemsControl inside the template but for some reason i was getting 1 letter(char) of the Enum each time
P.S
I know i can create a new convertor and solve the problem, but i prefer not to
P.S2
I cant change my convertor