This question is locked. New answers and comments are not allowed.
I had a RadGridView with a GridViewComboBoxColumn inside it. The data shows fine and works correctly. The problem is that grouping by that column shows the property instead of the value in it. It does group, but the display value is wrong. I have tried about 10 different ways to get it to display right, but it won't. Also, the type ahead does not work in edit mode. I am guessing these are related.
When I group by that column, the groups all say "MyPageName.RadComboBoxDetail". They are sorting by the different possibilities, but all of the groups say the same thing.
I use this same collection for a RadComboBox that is not in a RadGridView. Earlier today I couldn't get Type Ahead to work in the RadComboBox, but I eventually got that figured out. I just needed to add the TextSearch.TextPath in and it got that working. However, nothing I have tried has resolved my two issues when putting this into a RadGridView.
Here is my custom template:
Here is the code for the column in my GridViewComboBoxColumn:
As I mentioned, I did have this in there at one time, but it didn't help so I took it out: Text.Search.TextPath="DropDownEntry"
When I group by that column, the groups all say "MyPageName.RadComboBoxDetail". They are sorting by the different possibilities, but all of the groups say the same thing.
I use this same collection for a RadComboBox that is not in a RadGridView. Earlier today I couldn't get Type Ahead to work in the RadComboBox, but I eventually got that figured out. I just needed to add the TextSearch.TextPath in and it got that working. However, nothing I have tried has resolved my two issues when putting this into a RadGridView.
Here is my custom template:
<
telerik:ContainerBindingCollection
x:Name
=
"UserItemBindings"
>
<
telerik:ContainerBinding
Binding
=
"{Binding Show, Mode=TwoWay}"
PropertyName
=
"IsEnabled"
/>
<
telerik:ContainerBinding
Binding
=
"{Binding VisibleState, Mode=TwoWay}"
PropertyName
=
"Visibility"
/>
</
telerik:ContainerBindingCollection
>
<
DataTemplate
x:Key
=
"ComboBoxVisibilityTemplate"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource UserItemBindings}"
>
<
TextBlock
Text
=
"{Binding DropDownEntry}"
/>
</
DataTemplate
>
Here is the code for the column in my GridViewComboBoxColumn:
<
telerik:GridViewComboBoxColumn
Width
=
"200"
DataMemberBinding
=
"{Binding SiteCode}"
EditTriggers
=
"CellClick"
Header
=
"Location"
IsReadOnlyBinding
=
"{Binding IsRowReadOnly}"
ItemTemplate
=
"{StaticResource ComboBoxVisibilityTemplate}"
SelectedValueMemberPath
=
"EntryStringId"
UniqueName
=
"rcbxLocationGrid"
/>
As I mentioned, I did have this in there at one time, but it didn't help so I took it out: Text.Search.TextPath="DropDownEntry"