PDA

View Full Version : How to get the group quantity of store data?



bnuy1y2
16 Jan 2012, 10:15 PM
After we group the store by some field, Which function can we use to get the quantity of group?

mitchellsimoens
17 Jan 2012, 8:20 AM
There is no built-in method to do this. You will need to iterate through he records to count. The collect method on the Store may help.

bnuy1y2
17 Jan 2012, 9:56 PM
Is getGroups() ok?
I use myStore.getGroups().length, seems it returns what I want