当前位置: 代码迷 >> Web前端 >> Ext.自动顺应宽度
  详细解决方案

Ext.自动顺应宽度

热度:39   发布时间:2012-10-09 10:21:45.0
Ext.自动适应宽度


var setting_customfieldslist_grid = new Ext.grid.GridPanel({
        store : _store,
        cm : _cm,
        //在Et.grid.ColumnModel中定义了id属性的那一列
        //也可以用索引:autoExpandColumn:3,其中的3表示的是列的索引
        autoExpandColumn : 'BCNames_id'
    });
var _cm = new Ext.grid.ColumnModel({
    header : "ID",
    dataIndex : 'ID',
    hidden : true,
    width : 100,
    autoHeight : true
}, {
    header : "品类类别名称",
    dataIndex : 'BCNames',
    id : 'BCNames_id',
    width : 200
});

  相关解决方案