I would like to save my modified record in extjs4, and when I change some checkbox and go to the next page I haven't last modified record why? in extjs 3 I found this method pruneMOdifiedRecords (if true - save modification), but in extjs4 i haven't found this method How can I do this?
如果要保存更改,则可以要求商店使用.sync()与服务器同步或放弃它们,然后使用.reload()重新加载
您可以调用commitChanges来保存您的修改,而调用rejectChanges来重置它们。
To 'reject' all your changes in record you can use(ExtJS 3.x):
record.reject();
Here your all changes will be rejected which you made from creation of record or last commit of record.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.