O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

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

Data grouping in grids

Grouping records in a grid provides a very simple yet powerful way to make meaningful deductions quickly from potentially large data. In a company stock data sheet grid, we could group the records by industry so that companies will be grouped together by their respective industries.

Data grouping in grids

How to do it...

Create a grid with ColumnModel from ColumnConfig objects, and GroupingStore instead of a regular ListStore, then set the column on which to perform the grouping operation using the groupBy() method of the GroupingStore class. Finally, set the grid's view to a GroupingView which extends the standard GridView class to provide specialized ...

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