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.
Perhaps you could tell me what I'm doing wrong here. Thanks.
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(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); // remove edited text
}
Perhaps you could tell me what I'm doing wrong here. Thanks.
Maarten
February 4,