I have a Kendo Grid with a column bounded to a enum. All works fine except when it comes to sorting. The sorting is performed on the int values of the items, instead of by the text. i.e.
public enum Test{
Red = 1,
Yellow = 2
Amber = 3
}
Sorting ascending, it outputs: Red, Yellow, Amber. Instead of Amber, Red, Yellow.
Sorting descending it outputs: Amber, Yellow, Red. Instead of Yellow, Red, Amber.
How can I get it to sort properly based on the text strings on the left?
Thx!
Mao
public enum Test{
Red = 1,
Yellow = 2
Amber = 3
}
Sorting ascending, it outputs: Red, Yellow, Amber. Instead of Amber, Red, Yellow.
Sorting descending it outputs: Amber, Yellow, Red. Instead of Yellow, Red, Amber.
How can I get it to sort properly based on the text strings on the left?
Thx!
Mao