[CLOSED] Changing underlying JSON object of a Store

  1. #1

    [CLOSED] Changing underlying JSON object of a Store

    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
    Last edited by Daniil; Aug 22, 2014 at 11:13 AM. Reason: [CLOSED]
  2. #2
    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.

Similar Threads

  1. [CLOSED] Use Store / Model to create Json from object
    By jchau in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 28, 2014, 9:33 PM
  2. Missing JSON object
    By PeterParsonage in forum 2.x Help
    Replies: 2
    Last Post: Nov 01, 2013, 7:25 AM
  3. JSON Object to Store
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Oct 11, 2011, 8:44 PM
  4. Replies: 4
    Last Post: Nov 08, 2010, 6:00 AM
  5. Replies: 4
    Last Post: Feb 02, 2010, 1:00 PM

Tags for this Thread

Posting Permissions