O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Grouping a Store's data

In Ext JS 3, data grouping was achieved by using the specialist GroupingStore. As a result, grouping data could not be done with more general Store classes. Fortunately, Ext JS 4 encapsulates this grouping functionality into the base Store class so groupings can now be defined on any Store.

We will delve into groupings with a simple example that loads some XML data taken from the Twitter API. We will then continue to demonstrate how to group by specific fields, examine the groupings' data, and manipulate these groupings on the fly.

We will then investigate how we can use these groupings to perform aggregate operations.

Getting ready

We will be loading our XML data through an AJAX call and so you must run these examples on a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required