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

A basic grid panel

Once we have our model and store, we are ready to define the grid that will show our clients information as shown in the following code:

/** * @classMyApp.view.BasicGridPanel * @extendsExt.grid.Panel * @author Armando Gonzalez <iam@armando.mx> * This the basic grid panel definition. */ Ext.define('MyApp.view.BasicGridPanel', { extend: 'Ext.grid.Panel', width:700, height:180, title:'Clients', initComponent: function() { var me = this; me.createModel(); me.columns = me.buildColumns(); me.store = me.buildStore(); this.callParent(arguments); }, createModel:function(){ //The definition of the client model }, buildStore:function(){ //defining the client`s store }, buildColumns : function(){ return [ { text:'Name', width:100, dataIndex:'name' ...

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