When a list is bound to RadComboxBox, the selected item is showing the type instead of actual value.
But the selected item will be the type of the list instead of actual value.
The value for Name wont be displayed in selected value.
for eg : The Name property contains certain values and its type is observable collection. Then the selected value will be displayed as that observablecollection
<
Controls:RadRibbonComboBox
x:Name
=
"namesCombo"
>
<
Controls:RadRibbonComboBox.ItemTemplate
>
<
DataTemplate
>
<
Border
Background
=
"Transparent"
>
<
TextBlock
Text
=
"{Binding Name}"
>
<
UserControls:TooltipHelper.Tooltip
>
<
ToolTip
Template
=
"{StaticResource TextToolTipTemplate}"
Content
=
"{Binding Description}"
/>
</
UserControls:TooltipHelper.Tooltip
>
</
TextBlock
>
</
Border
>
</
DataTemplate
>
</
Controls:RadRibbonComboBox.ItemTemplate
>
</
Controls:RadRibbonComboBox
>
private void SetWriteableTemplates(bool isUserAdmin)
{
if (Templates == null) return;
namesCombo.ItemsSource = Templates.Where(t => isUserAdmin || !t.IsSystem).ToList();
namesCombo.SelectedIndex = 0;
}
But the selected item will be the type of the list instead of actual value.
The value for Name wont be displayed in selected value.
for eg : The Name property contains certain values and its type is observable collection. Then the selected value will be displayed as that observablecollection