tags:

views:

9

answers:

1

I would like to click on the header of a dojo data grid and retrieve information such as if it is sorted and what direction is it sorted in, the column index, and the column name. Has anyone done this.

A: 

Look at the getSortProps function in dojox.grid.Datagrid. Calling this function will return a JSON with the field that is being currently sorted and what direction. You can get the index by calling the getSortIndex function. Don't know how to get the name off the top of my head

Bishnu