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?
3.title: "Chart Type",
1 Answer, 1 is accepted
answered on 22 May 2020, 07:37 AM
Normally the DropDownList should be bound to an object instead of to a number or string, as shown in the Custom Editor demo. In order to make the column sortable, slight changes are required, as demonstrated in this small Dojo example.
Let me know if that works for you. If the example does not completely match your scenario, please modify it to replicate your project with any issues you are experiencing, and I will happily assist you.
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.