Declined
Last Updated: 17 Jan 2022 15:55 by ADMIN
Madani Benghia
Created on: 10 May 2017 10:11
Category: Kendo UI for jQuery
Type: Feature Request
1
Add Grid Column sort config which should be different from column field
Developers should be able to specify grid column sort config property which is different from column field property.For instance, when listing products, my view model may have CategoryName property mapped from EF entity navigation property Category.Name using AutoMapper, while my sorting will use "Category.Name" on the server side.Example config could be like: 
columns[{title:"Category",field:"CategoryName",sort:"Category.Name"}]

This will allow me to flatten my view model without loosing sorting functionality.
1 comment
ADMIN
Angel Petrov
Posted on: 17 Jan 2022 15:55

Hello,

The idea behind the field property of a column is to use this field for all data operations(filtering, sorting and etc). That said I would recommend setting the field by which should things be sorted as a column field. If the text displayed should be other one can use the column template.

Regards,
Angel Petrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.