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

GridDropDownColumn combine two display member?

3 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 09 Mar 2015, 03:32 PM
How can I combine two display members in a GridDropDownColumn. For example my table has a column Item_Id. The item table has a Make and Model field. I want my combobox to display Make-Model.

3 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 12 Mar 2015, 01:45 PM
Hello Josh,

The functionality you describe is not available out of the box. However, you can use custom logic to implement it.

You can create a temporarily collection (e.g. DataTable) where you can store the Make and Model in a single field. Then you can set the dropdown control to display the information from that field.

In order to implement this it may be easier to use GridTemplateColumn and place a RadComboBox in the EditItemTemplate.



Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Josh
Top achievements
Rank 1
answered on 13 Mar 2015, 12:17 AM
I appreciate you getting back to me. The approach I went with is I created a view to accomplish this. Seems to work good.

Thanks,
Josh
0
Viktor Tachev
Telerik team
answered on 17 Mar 2015, 01:02 PM
Hi Josh,

Thank you for sharing your solution with the community.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Josh
Top achievements
Rank 1
Share this question
or