I have a grid containing dropdown column bind to the field named ChartTypeId. It has a custom template which display the ChartTypeName. The problem, it sorts the column by ChartTypeId. How can I modify it to sort by ChartTypeName instead of ChartTypeId?
1.
{
2.
field:
"ChartTypeId"
,
3.
title:
"Chart Type"
,
4.
width:
"auto"
,
5.
template:
"${ChartTypeName}"
,
6.
editor: ChartTypeDropDownEditor,
7.
editable:
true
,
8.
},