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
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

|
#2
|
|
@franklt69 - Did you figure this out? I need to know this as well.
![]() |
本文探讨了使用ExtJS框架时如何保持Grid与XML数据同步的问题。作者分享了一种方法来修改Grid中的数据,并讨论了如何将这些更改的数据发送到服务器的具体实现。文章最后提出了获取已修改数据并将其构建为XML格式的需求。

被折叠的 条评论
为什么被折叠?



