:: Forum >>

Currently Sorted Column

Once you intialize a grid, getCurrentColumn and getCurrentRow return 0 since the default selected cell is (0,0).

Now if you click say the third column header to sort the thing (0,0) is still your currentrow and currentcolumn, because at this point you have not actually clicked on a different cell, all you have done is clicked on a header.

How do I tell what the current header selection is? That is, which columns header was clicked?
Eric Juvet
Friday, May 9, 2008
Figured it out. One way to to do this is make a variable called curHeaderColumn and an onHeaderClicked function.

obj.onHeaderClicked = function(event, col,row){curHeaderColumn = col}



Eric Juvet
Saturday, May 10, 2008
This value is stored in sortColumn property -

http://www.activewidgets.com/aw.ui.grid/sort-column.html
Alex (ActiveWidgets)
Tuesday, May 13, 2008

This topic is archived.


Back to support forum

Forum search