日期:2014-05-16  浏览次数:20619 次

extjs 布局问题

因为没学 请教怎么布局
------最佳解决方案--------------------
group-header-grid的示例而已,自己在examples\grid找到示例按照示例修改下就好了

var grid = Ext.create('Ext.grid.Panel', {
            columnLines: true,
            columns: [{
                text: '库名',
                flex: 1,
                sortable: false,
                dataIndex: '库名'
            }, {
                text: '乡镇',
                flex: 1,
                sortable: false,
                dataIndex: '乡镇'
            }, {
                text: '八时水情',
                columns: [{
                    text: '水位',
                    width: 75,
                    sortable: true,
                    dataIndex: '水位'
                }, {
                    text: '入库流量',
                    width: 75,
                    sortable: true,
                    dataIndex: '入库流量'
                }, {
                    text: '出库流量',
                    width: 75,
                    sortable: true,
                    dataIndex: '出库流量'
                }, {
           &nb