:: 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");
//grid.setHeaderModel(myheaders);
obj.setHeaderText(myheaders);
obj.setColumnCount(5);
obj.setRowCount(100);
obj.setCellEditable(true);
obj.onHeaderClicked = function(){ alert("Header ? clicked");return true};

document.write(obj);






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 /aw.ui.grid/header-footer-mouse-events.html

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

This topic is archived.


Back to support forum

Forum search