:: Forum >>

How to Detect Which Header is Clicked

var obj = new AW.UI.Grid;
var myheaders=new Array(5);
myheaders[0]="Header 1";
myheaders[1]="Header 2";
myheaders[2]="Header 3";
myheaders[3]="Header 4";
myheaders[4]="Header 5";

obj.setSize(500, 250);

obj.setCellText(function(i, j){return j + "." + i});
//obj.setHeaderText("header1","Header 2");
obj.onHeaderClicked = function(){ alert("Header ? clicked");return true};


I want to know Which Header is clicked and its Sorting Order, so that I can customize the the sql query to be fired in the backend.
siddhartha Sankar Bhattacharee <ssbavi@gmail.com>
Tuesday, April 24, 2007
To check which header is clicked, see the example at http://www.activewidgets.com/aw.ui.grid/header-footer-mouse-events.html

For sorting order, see http://www.activewidgets.com/aw.ui.grid/sort-direction.html and http://www.activewidgets.com/aw.ui.grid/sort-column.html
Ankur Motreja
Tuesday, April 24, 2007

This topic is archived.

Back to support forum

Forum search