3.2.0

Help needed

Hi,

Is there a way that we could change value of a cell programatically?? For example I have a grid which has 10 rows and If i am editing the 6th row first column and making changes to the DB. Is there a way to programatically change the value of the same row second column in AW??

Any help is appreciated.

Thanks
December 11,
Yes, its possible with onCellValidated event and setCellText method -

var obj = new AW.UI.Grid;
obj.setCellData("cell");
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(10);
obj.setCellEditable(true);
document.write(obj);

obj.onCellValidated = function(text, col, row){
    this.setCellText("Updated: " + text, Number(col)+1, row)
}
Alex (ActiveWidgets)
December 11,
Perfect!!

Thank you so much!!!

December 11,

This topic is archived.

See also:


Back to support forum