Feb 25, 2013, 1:01 PM
[OPEN] [#164] Store save changed data in one request use store event
Hi Everyone,
I work with Ext.Net2.1, I just want to save store changed data in one request, I know I can do it use this https://examples2.ext.net/#/GridPanel/Update/Batch/ but I want an interface use Store event, so I check this https://examples2.ext.net/#/GridPane...s/StoreEvents/ and this https://examples2.ext.net/#/GridPane...reCustomLogic/ but when I invoke store.sync() on client side, it's call server side 3 times(create,update,destory).
In summary, I need an event StoreSaveData with Store on server side, and a method save(options) with store on client side(or saveData,just a method name), when I call save(), I can set some options like skipIdForNewRecords,success,failure,etc, then StoreSaveData event fired, I can handle all create,update,destory data with StoreSaveDataEventArgs, I can get ChangeRecords<T> from it, or get JsonData etc. finally, the event can response changed data to client side and update client side store, or if there are exceptions, can give me a chance to handle it, that's all.
Any suggestion?
Thanks
I work with Ext.Net2.1, I just want to save store changed data in one request, I know I can do it use this https://examples2.ext.net/#/GridPanel/Update/Batch/ but I want an interface use Store event, so I check this https://examples2.ext.net/#/GridPane...s/StoreEvents/ and this https://examples2.ext.net/#/GridPane...reCustomLogic/ but when I invoke store.sync() on client side, it's call server side 3 times(create,update,destory).
In summary, I need an event StoreSaveData with Store on server side, and a method save(options) with store on client side(or saveData,just a method name), when I call save(), I can set some options like skipIdForNewRecords,success,failure,etc, then StoreSaveData event fired, I can handle all create,update,destory data with StoreSaveDataEventArgs, I can get ChangeRecords<T> from it, or get JsonData etc. finally, the event can response changed data to client side and update client side store, or if there are exceptions, can give me a chance to handle it, that's all.
Any suggestion?
Thanks
Last edited by Daniil; Mar 13, 2013 at 12:42 PM.
Reason: [OPEN] [#164]