Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    212
    Vote Rating
    3
    bweiler is on a distinguished road

      0  

    Default B2: Store setClearOnPageLoad property not functioning

    B2: Store setClearOnPageLoad property not functioning


    The store.setClearOnPageLoad(false) has no effect when using store.load(). Multiple store.load() calls overwrite any existing records.

    Is this fixed in B3?

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    The store.setClearOnPageLoad method only handles the loadPage, nextPage, previousPage methods. Currently there is no configuration method on the Store that handles all load calls (something like clearOnLoad). The way you can currently have the records be added is by passing addRecords: true to the options of your load call.

    Code:
    store.load({
        addRecords: true
    });
    We might add a nicer configuration for this in a future release.

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    212
    Vote Rating
    3
    bweiler is on a distinguished road

      0  

    Default


    This works great! Please add this to the store documentation and please include a reference to this in the clearOnPageLoad store configuration documentation.

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Alright, I will do that.

    ~W

Thread Participants: 1