PDA

View Full Version : Grid: How to change default sort direction?



wgpubs
21 Jan 2009, 12:01 AM
When I click on a header ... the default sort direction is ASC. I'd like to configure the grid so that by default, the sort direction is DESC.

Thanks

Alberto Wagner
29 Jan 2009, 5:12 AM
Yes.. I do need this too..
Also it would be great if I could sort only DESC

Condor
29 Jan 2009, 5:46 AM
Create your fields as:

fields: [
{name: 'field1', sortDir: 'DESC', ...},
{name: 'field2', sortDir: 'DESC', ...},
...
]
(this will initially sort descending when clicking on a header, but you can still sort ascending by clicking it again)

wgpubs
9 Feb 2009, 12:41 PM
Thanks Condor ... that did it