O'Reilly logo

Learning Ext JS 4 by Armando Gonzalez, Crysfel Villa

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

Features

The Ext.grid.Feature class is a new class included in Ext JS 4 designed for creating optional grid features. In older versions of the framework plugins were one way of adding custom functionality to grids, but the Sencha team have created a more organized way of doing this. With this class we can inject additional functionality in certain points of the grid's creation cycle.

In Ext JS 4 we have four main classes that extend from Ext.grid.Feature.

Ext.grid.feature.Grouping

This feature displays the grid rows in groups; the configuration has to be done in the grid with the feature property and has to be done on the grid store as well.

First we have to change our store a little bit as shown in the following code:

Ext.create('Ext.data.Store', ...

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