<
ti:RadComboBox
Name
=
"CodeComboBox"
Margin
=
"5,0,0,0"
MinWidth
=
"80"
tc:StyleManager.Theme
=
"Office_Blue"
IsEditable
=
"True"
ItemsSource
=
"{Binding DataView}"
DisplayMemberPath
=
"{Binding DisplayColumnName}"
SelectedValuePath
=
"{Binding KeyColumnName}"
SelectedItem
=
"{Binding SelectedView}">
<
ti:RadComboBox.SelectionBoxTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"Hows it going"
Background
=
"Green"
/>
</
DataTemplate
>
</
ti:RadComboBox.SelectionBoxTemplate
>
</
ti:RadComboBox
>
Am I doing something wrong?
5 Answers, 1 is accepted
Could you please let us know why do you hardcode the Text of the TextBox in the SelectionBoxTemplate, when you bound the RadComboBox? If you give us more details about your scenario it would be very helpful.
For additional information about SelectonBoxTemplate, please refer to our online documentation - http://www.telerik.com/help/wpf/radcombobox-populating-with-data-selectionbox.html
George
the Telerik team

SelectionBoxTemplate is applied only when the RadComboBox is not editable. Otherwise, the EditableTemplate gets applied. Please, pay attention to that you need to set a ControlTemplate for EditableTemplate, not a DataTemplate.
I hope this helps.
George
the Telerik team

If the RadPane is docked, the selectionbox display is fine. After RadPane is undocked and floated, it does not woks anymore and it will display the whole object, see attached picture.
Any fixed?
Please, make sure the SelectionBoxTemplate is not defined in the window resources, but in the App.xaml file. When a pane is floating, it is placed in another window which could break template applying.
George
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>