开发者

ExtJS DataStore - markDirty

开发者 https://www.devze.com 2023-01-05 12:36 出处:网络
I\'m adding records to a store and marking them dirty using the \"markDirty: method on the data record.Once I have saved the data, I w开发者_如何学Cant to mark the records as not dirty anymore.I check

I'm adding records to a store and marking them dirty using the "markDirty: method on the data record. Once I have saved the data, I w开发者_如何学Cant to mark the records as not dirty anymore. I checked the documentation and dirty is a readonly field. I don't see anyway of setting this. Any ideas?


Store.commitChanges() will commit all changes and mark each record as not dirty. You can also call commit() individually on records (or reject() to discard changes).

0

精彩评论

暂无评论...
验证码 换一张
取 消