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 <[email protected]> * 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' },{ text:'Last Name', width:100, dataIndex:'lastname' },{ ...