:: Forum >> Version 2 >>

setData in 2.0?

More information on this topic is available in the documentation section: /aw.xml.table/data.html.

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(columnrow).textContent 
HoseHead
Wednesday, November 22, 2006
in IE you should still use .text -

table.setData = function(valuecolrow){
    var 
node this.getNode(colrow);
    if (
AW.ie) {
        
node.text value;
    }
    else {
        
node.textContent value;
    }
}
 
plus you need actually call setCellData when you want to save changes -
// after validation update 'data' and remove 'text' properties
obj.onCellValidated = function(textcolrow){
    var 
format this.getCellFormat(colrow);
    var 
data format ? format.textToData(text): text;
    
this.setCellData(datacolrow);
    
this.setCellText(undefinedcolrow); // remove edited text
}  
 
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 /aw.xml.table/data.html

Documentation:

Forum search