3.2.0

Is there any way to freeze the column dynamically..

Is there any way to freeze the column dynamically..

For Example

function constructTable(){
var headerList= [
"First Name", "Last Name", " Dept Name", " Emp Id"
];

var dataList=[
['a','b','xyz', '001']
['c','d','zyx', '002']
['e','f','zzz', '003']
['g','h','abc', '004']
];
var obj = new AW.Grid.Extended;
obj.setId("myGrid");
obj.setHeaderText(headerList);
obj.setColumnCount(headerList.length);
obj.setCellText(dataList);
obj.setRowCount(dataList.length);
return obj;
}

function freezeCol(colno){
obj.setFixedLeft(colno);
??????????

}

When the page loads, construct table javascript function will be called and the table will be constructed. In the UI, the user has option to select the number of columns to be freezed ....... How to handle this situation


December 22,
Try this -

function freezeCol(colno){
obj.setFixedLeft(colno);
obj.raiseEvent('paint');
obj.refresh();
}
Alex (ActiveWidgets)
December 23,

This topic is archived.

See also:


Back to support forum