PDA

View Full Version : collecting the data modified in grid?



franklt69
28 Feb 2007, 8:03 AM
Hi I read sometimes (yui-ext keep grid and xml synchronized) so now testing the alpha2, I can modified the data in grid, but my doubt, how I can get the data modified to send it the server?

I did it:

this.onDeleteSearchConditions = function(){
var id = currenRecordSelected.data['ExternalId'];
if (id == '0')
{
ds.remove(currenRecordSelected);
}
else
{
currenRecordSelected.beginEdit;
currenRecordSelected.data['Flag'] = '1';
currenRecordSelected.endEdit;
currenRecordSelected.commit;
}
.....

I can watch the data is modified right, then I need to send it to server:

this.onConditionsSave = function(){
debugger;
var xml = reader.xmlData;
xml = getXMLNodeSerialisation(xml);
};
};

but here I watch the xml is the same before edit the grid (Flag don't have value '1'), so how I can get the data modified to send it?

I have to build a xml with data modified in javascript or Ext library have some method to get the data modified in xml?

some help please.

kind regards
Frank

jratcliff
15 Mar 2007, 7:53 AM
@franklt69 - Did you figure this out? I need to know this as well.