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

Grouping with foreign key mechanism

2 Answers 63 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 10 Feb 2017, 11:21 AM

Hi,

I would like to know if we can have a sort of foreign key mechanism in the Group method of the DropDownlist.

My goal is to group the item using a PrimaryKey (that is an Id of my records) but displaying the value of the record instead

of the Id in the label of the group displayed when the Dropdownlist is expanded.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 14 Feb 2017, 09:53 AM
Hello Michel,

You can define group template and manually find the corresponding text value from the passed value field value as shown in the following dojo example:

Best Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Michel
Top achievements
Rank 1
answered on 14 Feb 2017, 10:58 AM

Hi Konstantin,

Great,

Thank you for your help

Tags
DropDownList
Asked by
Michel
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Michel
Top achievements
Rank 1
Share this question
or