PDA

View Full Version : Grid store: getting store count factoring in all the filters currently applied



abcdef
4 Apr 2012, 11:00 AM
How can I get the store count that factors in all the filters that are currently applied to the store? Using 4.0.2 for now.

scottmartin
4 Apr 2012, 11:53 AM
Have you tried the following? Is this a local or remote store?

store.getCount() // current records
store.getTotalCount() // all records

Regards,
Scott.

abcdef
4 Apr 2012, 12:16 PM
Have you tried the following? Is this a local or remote store?

store.getCount() // current records
store.getTotalCount() // all records

Regards,
Scott.

Wow! I could've sworn that I had tried it and somehow got the unexpected count! But it works! Thanks!