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

Foreign Key Column Text Sorting

2 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 28 Jan 2016, 03:12 PM

Hi,

 We're trying to use foreign key columns in the MVC grid and came to the realization it sorts on the numeric ID value rather than the foreign table text value. Telerik has mentioned there is no way for them to implement a fix, but our group was wondering if anyone else has come up with a work-around or simple fix to accomplish this.

2 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 01 Feb 2016, 08:32 AM
Hi Mike,

Sort the grid before you populate it with data. Or create ViewModel which the grid can sort.

Regards,
Hristo Valyavicharski
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Allan
Top achievements
Rank 1
answered on 15 Nov 2017, 01:47 AM
Have a look at this answer written by telerik: https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/various/foreign-key-column-sorting-by-text
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Allan
Top achievements
Rank 1
Share this question
or