Results 1 to 4 of 4

Thread: clear store

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    58

    Default clear store

    Hi,

    i have a store which is filled with data. But at some point i would like to clear the entire store and add new data to it. But i don't see a .clear() function or anything like that in the API docs.

    So my question is, how can i clear a store??

    Thanks for any help.

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Location
    Switzerland
    Posts
    78

    Default

    Code:
    store.remove(store.getRange());

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    58

    Default

    Thanks, i also found out that this worked too:

    store.removeAll();

    Why isn't this in the API docs..?

  4. #4
    Sencha User
    Join Date
    Jul 2010
    Location
    Switzerland
    Posts
    78

    Default

    interesting, I didn't know that.
    thanks

Posting Permissions

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