如何以Ext.grid.ColumnModel
百分比形式设置宽度?
问问题
9727 次
1 回答
9
使用数字作为列宽,总共 100,并使用 forceFit 配置视图,例如
var grid = new Ext.grid.GridPanel({
cm: new Ext.grid.ColumnModel({
columns: [{
header: 'header1',
dataIndex: 'data1',
width: 30
},{
header: 'header2',
dataIndex: 'data2',
width: 30
},{
header: 'header3',
dataIndex: 'data3',
width: 40
}]
}),
viewConfig: {
forceFit: true
}
});
于 2010-07-04T17:49:19.663 回答