collecting the data modified in grid? - Ext JS

本文探讨了使用ExtJS框架时如何保持Grid与XML数据同步的问题。作者分享了一种方法来修改Grid中的数据,并讨论了如何将这些更改的数据发送到服务器的具体实现。文章最后提出了获取已修改数据并将其构建为XML格式的需求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值