PDA

View Full Version : [CLOSED] Changing underlying JSON object of a Store



asolvent
Aug 14, 2014, 6:29 AM
Hi,

Is there a way I can automatically change the underlying JSON object of a store in a seamless way?

Say a store has been built by loading data (loadData) from a JSON object, now the requirement is to change the JSON object automatically as soon as the store changes (The store would be bound to a control, which would let the user change it)?

Cheers,
Avi

Daniil
Aug 14, 2014, 2:56 PM
Hi @asolvent,

As far as I can know there is no such the functionality built-in.


as soon as the store changes

I would set AutoSync="true" for the Store and listen to its BeforeSync client side event. You can return false from a BeforeSync handler to prevent the default synchronization behavior and do the required things with the underlying JSON object.