How to get the row no in grid
I have to select multiple rows to perform some operation and need the row no of the rows selected by user. Any suggestions?
Jack
April 5,
var obj = new AW.UI.Grid;
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(10);
obj.setSelectionMode("multi-row");
obj.onSelectedRowsChanged = function(rowIndexArray){
var rowIndex, rowPosition, i, s = "";
for(i=0; i<rowIndexArray.length; i++){
rowIndex = rowIndexArray[i];
rowPosition = this.getRowPosition(rowIndex);
s += " " + rowPosition;
}
window.status = s;
}
document.write(obj);
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021