ExtJs4.1:新建一个GridPanel并在弹出窗口中显示
新建GridPanel:
var grid = Ext.create('Ext.grid.Panel', { border: false, store: store, columns: createColumns(4), loadMask: true, features: [filters], dockedItems: [Ext.create('Ext.toolbar.Paging', { dock: 'bottom', store: store })], emptyText: 'No Matching Records' });
在弹出窗口中显示
var win = Ext.create('Ext.Window', { title: 'Grid Filters Example', height: 400, width: 700, layout: 'fit', items: grid }).show();