`
eimhee
  • 浏览: 2105988 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

collecting the data modified in grid? - Ext JS

阅读更多
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
Reply With Quote
  #2  
Old 03-15-2007, 10:53 AM
Default

@franklt69 - Did you figure this out? I need to know this as well.
Reply With Quote
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics