PDA

View Full Version : How do I loop thru groupingstore for groups only



moegal
27 Apr 2010, 5:07 PM
Hi,

I have a store with 30 records. When grouped there are 10 groups. How can I loop thru the store and return only the 10 groups? The following returns all 30 records.



Ext.each(store.data.items, function(item){
console.log(item);
});


Thanks, Marty

evant
27 Apr 2010, 5:27 PM
You could use the collect() method, if you want to grab the group names.

moegal
27 Apr 2010, 5:38 PM
Great! That is just what I needed.

Thanks, Marty