:: Forum >> Version 2 >>

Editable XML grid

Hi Alex,

I use the xmlcontent = table.getXML().xml method to get the xml from an editable data grid which is based on a AW.XML.Table source.
The problem is that xmlcontent does not show any modifications made that I've made in the grid.

I've added the table.setData function to update node text and added
the following code block so the table.setData gets called.
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

 
Perhaps you could tell me what I'm doing wrong here. Thanks.
Maarten
Monday, February 4, 2008
You should also implement table.setData method, for example,

table.setData = function(valuecolrow){
    var 
node this.getNode(colrow);
    if (
AW.ie) {
        
node.text value;
    }
    else {
        
node.textContent value;
    }

 
Alex (ActiveWidgets)
Monday, February 4, 2008



This topic is archived.

Back to support forum

Forum search