O'Reilly logo

Ext.NET Web Application Development by Anup Shah

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

The GridPanel also comes with a feature to allow grouping the data by a column, as shown in the following screenshot:

Grouping

Notice the menu now provides two extra options—to enable grouping at all (Show in Groups) and whether to group by the current column whose menu is being shown.

Tip

Also notice how the formatting for the column value is preserved in the grouping header as well. That is because, if you recall earlier, the Renderer function we used for that column updated the value itself. So when the Grouping header is shown, that formatted value is used.

To set this up we simply add another "Feature" to the GridPanel as follows:

<Features> <ext:GridFilters ...

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