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();



 

posted @ 2013-01-22 18:00  cuibq  阅读(1098)  评论(0编辑  收藏  举报