Results 1 to 4 of 4

Thread: B2: Store setClearOnPageLoad property not functioning

    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
      0  

    Default 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
    11
      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
      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
    11
      0  

    Default

    Alright, I will do that.

    ~W

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •