View Full Version : How to set grid's column as initially sorted?

17 Sep 2012, 6:36 AM
How can I set a column of a grid as initially sorted?

The first time my grid appears, none of the columns are sorted. I can click one and the grid sorts correctly (via remoteSort), and since I have stateful true, the sort settings get saved in my cookies. The next time the grid is rendered, it gets the sort info from the cookies and sorts correctly at start-up. This is the functionality I want to mimic, being able to specify initial column to sort.

17 Sep 2012, 10:45 AM
Add this to your store:

sorters: {
property: 'id_field',
direction: 'DESC'