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

Grid listeners

The event listener is a core feature in components of the Ext JS library. The grid panel is not an exception. Because of its nature this panel has a very well designed set of listeners that will allow us to process all kind of events.

Let's write some code to update our grid information; to achieve this task we are going to use a form panel.

We have to define the form panel used for editing the grid data as shown in the following code:

/** * @classMyApp.view.Form * @extendsExt.form.Panel * @author Armando Gonzalez <iam@armando.mx> * This the form for the grid listeners example. */ Ext.define('MyApp.view.Form', { extend:'Ext.form.Panel', layout:'anchor', title:'client', flex:1.5, frame:true, defaultType:'textfield', defaults:{ allowBlank:false, ...

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