:: Forum >>
setData in 2.0?
when will setData be ready in 2.0?
and is there a method to pull this same action off using getNode(col,row).[setSomeDOMhere]
???
HoseHead
Wednesday, November 22, 2006
as usual I posted something then figured it out right after posting.
table2.getNode(column, row).textContent
HoseHead
Wednesday, November 22, 2006
in IE you should still use .text -
table.setData = function(value, col, row){
var node = this.getNode(col, row);
if (AW.ie) {
node.text = value;
}
else {
node.textContent = value;
}
}
plus you need actually call setCellData when you want to save changes -
obj.onCellValidated = function(text, col, row){
var format = this.getCellFormat(col, row);
var data = format ? format.textToData(text): text;
this.setCellData(data, col, row);
this.setCellText(undefined, col, row);
}
Alex (ActiveWidgets)
Wednesday, November 22, 2006
ah so thats last part is why it keeps running changing my stuff back to the original values.
Thanks Alex..
HoseHead
Thursday, November 23, 2006
This topic is archived.
Back to support forum
Forum search