:: Forum >>

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
Monday, December 11, 2006
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)
Monday, December 11, 2006
Perfect!!

Thank you so much!!!

Monday, December 11, 2006

This topic is archived.


Back to support forum

Forum search