1、首先定义一个gridpanel类
var store = Ext.create('Ext.data.Store', {
fields: ['label1','label2','label3'],
data: []
});
Ext.define('TestGridPanel', {
extend : 'Ext.grid.Panel',
xtype : 'testGridPanel',
referenceHolder : true,
title: 'title of gridpanel',
requires : ['TestGridController'],
controller: 'TestGrid',
store : store,
selModel: {
selType: 'checkboxmodel',
mode: