Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I reset column sort with Kendo UI Grid?

enter image description here

I am trying to reset column sorting (see image above) so that there is no down or up arrow. I've tried $("#grid").data("kendoGrid").refresh() to redraw the grid but it doesn't unsort the column. Any thing else I can try beside refreshing my browser?

like image 479
isurfbecause Avatar asked Jan 23 '13 23:01

isurfbecause


People also ask

How do I set default sort in kendo grid?

By default, the Grid applies single-column sorting when the Sortable() method is enabled. Alternatively, you can configure single-column sort mode by setting the [ SortMode ]{% if site. core %}(/api/Kendo.

How do I fix a column in Kendo grid?

The Kendo UI grid widget supports static/frozen columns by a single configuration setting. Simply set the locked attribute of the corresponding column to true, and this will bring the column in the locked columns group positioned on the left in the grid.

How do I sort in kendo grid?

Grid with mixed column sorting enabled To multi-sort the columns, hold the "CTRL" key and click the columns header. A single-click (without holding the "CTRL" key) on any column un-sorts the currently sorted columns and applies single-sorting to the clicked column.


1 Answers

Try:

$("#grid").data("kendoGrid").dataSource.sort({});
like image 110
OnaBai Avatar answered Oct 17 '22 23:10

OnaBai