I have a GridViewComboBoxColumn inside a RadGridView. The GridViewComboBoxColumn is bound to a collection of Objects. I need to display different things for the selected option vs the dropdown options. I would like to display one property of the Object in the selection box (object.Name), and another property in the drop down (Object.Description).
I accomplished this in a RadComboxBox before by doing the following:
I can't do this for a GridViewComboBoxColumn because there is no "SelectionBoxTemplate" property.
Is it possible to get the same behavior in a GridViewComboBoxColumn? Any help would be greatly appreciated. Thank you.
I accomplished this in a RadComboxBox before by doing the following:
<telerik:RadComboBox Grid.Row="2" Grid.Column="1" telerik:StyleManager.Theme="Windows8Touch" Margin="5 3 5 0" MaxDropDownHeight="1000" ItemsSource="{Binding MultiCropTypes}" SelectedValue="{Binding SelectedMultiCropTypeId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" Tag="{Binding MultiCropTypes}" SelectedValuePath="PkMultiCropTypeId"> <telerik:RadComboBox.SelectionBoxTemplate> <DataTemplate> <TextBlock Text="{Binding Description, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" TextTrimming="CharacterEllipsis" /> </DataTemplate> </telerik:RadComboBox.SelectionBoxTemplate> <telerik:RadComboBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" TextWrapping="Wrap" Width="900" Margin="0,0,10,0" /> </DataTemplate> </telerik:RadComboBox.ItemTemplate></telerik:RadComboBox>I can't do this for a GridViewComboBoxColumn because there is no "SelectionBoxTemplate" property.
Is it possible to get the same behavior in a GridViewComboBoxColumn? Any help would be greatly appreciated. Thank you.