javascript - Kendo UI Grid - Sort by Descending Before Ascending -
I have read through every online post that I can find about sorting with the cando grid, in fact i I am trying to find a method of sorting by climbing first and then climbing. I know how to set a default sort in descending order when the grid is loaded, but I need that any field is sorted.
sortable: {allowUnsort: false SortByDescendingFirst: true & lt; == Something like this},
I do not think one of defining it There is an option - you can try to do something like this (this is for Q1 2014, you can do the older version but you have to modify kendo.ui.Sortable.fn._click
instead ):
kendo.ui.Sorter.fn._click = function (default) {return function (e) {var element = this.element, dir = element.attr (kendo.ttr ( "DIR");); If (! Dir) element.attr (kendo.attr ("dir"), "asc"); If (dir === "desc") element.attr (kendo.attr ("dir"), ""); If (dir === "asc") element.attr (kendo.attr ("dir"), "desc"); Basic call cal (it, e); }; } (Kendo.ui.Sorter.fn._click);
Comments
Post a Comment