This is a migrated thread and some comments may be shown as answers.

Combobox column

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 30 Nov 2009, 07:17 AM
Hi,

When I set a filter on the GridviewComboboxColumn I see the SelectedValuePath instead of the DisplaymemberPath.
This is not what you would expect.

In your RadComboBox you have an ItemTemplate and a SelectionBoxItemTemplate.  I also would like to have this behaviour for the GridViewComboBoxColumn. Is this possible?

Thanks,

Thomas.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 30 Nov 2009, 10:30 AM
Hi Thomas,

Filtering works with the actual data. You have two choices.

1. You can create your own custom filtering control as described in this tutorial. With this approach you will have complete control over what is going on.

2. Define an IValueConverter for the column's DataMemberBinding. When there is a converter, the filtering UI works with the raw data underneath, but displays the converted values in the distinct values list.

The GridViewComboBoxColumn is for the most basic and generic scenarios. For anything more specific, you will have to redefine the template of the GridViewCell, place a RadComboBox inside and set it up the way you want.

I hope this helps.

All the best,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or