Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo grid sorting in desc order

I am using Kendo grid in my Grails app and my requirement is to sort "date" column in descending order as soon as the row get inserted, so that most recent date comes at the top row in the grid.

How do I sort by the date column?

like image 545
A B Avatar asked Apr 17 '12 10:04

A B


1 Answers

Default sort criteria is a property on your dataSource:

sort: { field: "date", dir: "desc"}
like image 50
HexHead Avatar answered Sep 20 '22 14:09

HexHead