首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

extjs 布局有关问题

2012-12-15 
extjs 布局问题因为没学 请教怎么布局[最优解释]group-header-grid的示例而已,自己在examples\grid找到示

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: '出库流量'
                }, {
                    text: '比汛限水位',


                    width: 75,
                    sortable: true,
                    dataIndex: '比汛限水位'
                }]
            }, {
                text: '当前水情',
                columns: [{
                    text: '水位',
                    width: 75,
                    sortable: true,
                    dataIndex: '水位'
                }, {
                    text: '时间',
                    width: 75,
                    sortable: true,
                    dataIndex: '时间'
                }, {
                    text: '入库流量',
                    width: 75,
                    sortable: true,
                    dataIndex: '入库流量'
                }, {
                    text: '出库流量',
                    width: 75,
                    sortable: true,
                    dataIndex: '出库流量'
                }, {
                    text: '比汛限水位',
                    width: 75,
                    sortable: true,
                    dataIndex: '比汛限水位'


                }]
            }],
            height: 350,
            width: '100%',
            renderTo: 'grid-example',
        });


[其他解释]
一直在做事,忘了,谢谢呀 ,

热点排行