Ext.grid.Panelxtype:gridpanel,grid
Grids are an excellent way of showing large amounts of tabular data on the client side. Essentially a supercharged <table>, GridPanel makes it easy to fetch, sort and filter large amounts of data.
Grids are composed of two main pieces - a Store full of data and a set of columns to render.
Grid是一个在客户端显示大量表格数据的很好的方式,本质上就是一个增强的 <table>, GridPanel使它非常简单的进行读取,排序和过滤大量数据。
Grids由两个主要的部件组成,一个是填满数据的仓库(Store),一个是设置的一些列字段。
基本的GridPanel
Ext.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email', 'phone'],
data:{'items':[
{ 'name&