Results 1 to 6 of 6

Thread: get total count for filtered store?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User jep's Avatar
    Join Date
    Sep 2010

    Default Answered: get total count for filtered store?

    Is there some way to get the total number of records on a filtered store? Previously, you could use store.snapshot.length (with certain caveats).

  2. Since the store data is not a simple Array but an Ext.util.Collection instance, you can get the total length of unfiltered data by the following line of code:

    var total = store.getData().all.length;
    where "store" is your store instance.

    Hope this helps.

Posting Permissions

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