Hi,
I have a problem to use the SelectionBoxTemplate property if I use it with a business entity and iseditable property set to true & IsReadOnly set to true.
I have an entity x with a property DateEcheance of type date time.
A collection of this entity is bind to the itemSource of the radComboBox
my templates are set like this
if i set the isEditable property to false, when i select an element, the selected item is displayed correctly (display the date DateEcheance) but if i set the isEditable property to true, the selected item displayed is the id of the object x !
so , do you have a workaround for this (i just want to see the same style if i set IsReadonly to true or false)
I have a problem to use the SelectionBoxTemplate property if I use it with a business entity and iseditable property set to true & IsReadOnly set to true.
I have an entity x with a property DateEcheance of type date time.
A collection of this entity is bind to the itemSource of the radComboBox
<telerik:RadComboBox Grid.Row="3" Grid.Column="1" ItemsSource="{Binding DateEcheanceList}"
ItemTemplate="{StaticResource comboBoxDateTemplate}"
SelectionBoxTemplate="{StaticResource dateEcheanceSelectedTemplate}"
/>
my templates are set like this
<DataTemplate x:Key="comboBoxDateTemplate">
<TextBlock Text="{Binding Content.DateEcheance}"/>
</DataTemplate>
<DataTemplate x:Key="dateEcheanceSelectedTemplate">
<TextBlock Text="{Binding DateEcheance,StringFormat=\{0:d\}}"/>
</DataTemplate>
if i set the isEditable property to false, when i select an element, the selected item is displayed correctly (display the date DateEcheance) but if i set the isEditable property to true, the selected item displayed is the id of the object x !
so , do you have a workaround for this (i just want to see the same style if i set IsReadonly to true or false)