Get all rows changed with onCellChanged
I want to know why with "obj.onCellValueChanged " all rows changed to "true" or "false" , with the example :
obj.setControlSize(600, 280);
obj.setCellText(myData);
obj.setHeaderText(myColumns);
obj.setCellText(function(c,r){return myData[r][c]} );
obj.setColumnCount(myColumns.length);
obj.setRowCount(myData.length);
obj.setCellTemplate(new AW.Templates.Checkbox, 0);
obj.setCellValue(function(col, row){return myData[row][0]=="S" ? true : false}, 0); obj.setCellText(function(col, row){return this.getCellValue(col, row) ? "S" : "N"}, 0);
document.write(obj);
obj.onCellValueChanged = function(value, column, row){
window.status = "Cell " + column + "." + row + " changed to " + value;
}
function getChecked() {
for(var i=0;i<obj.getRowCount();i++) {
if(obj.getCellValue(0,i)) {
alert(i);
}
} I lose the index of which they were changed
Gracias, Thanks, Merci
obj.setControlSize(600, 280);
obj.setCellText(myData);
obj.setHeaderText(myColumns);
obj.setCellText(function(c,r){return myData[r][c]} );
obj.setColumnCount(myColumns.length);
obj.setRowCount(myData.length);
obj.setCellTemplate(new AW.Templates.Checkbox, 0);
obj.setCellValue(function(col, row){return myData[row][0]=="S" ? true : false}, 0); obj.setCellText(function(col, row){return this.getCellValue(col, row) ? "S" : "N"}, 0);
document.write(obj);
obj.onCellValueChanged = function(value, column, row){
window.status = "Cell " + column + "." + row + " changed to " + value;
}
function getChecked() {
for(var i=0;i<obj.getRowCount();i++) {
if(obj.getCellValue(0,i)) {
alert(i);
}
} I lose the index of which they were changed
Gracias, Thanks, Merci
Cristina (Spain)
March 7,