ExtJS中如何使得Grid中的列宽度自动填充
如下:设置flex属性就可以将每列中的内容自动填充,不会是的grid表格居左显示
columns:[
{
text:‘商品编号’, dataIndex: ‘ProductID’,editable: true,
wrap : true, //溢出则换行.
flex : 1, //自动填充列
},
如下:设置flex属性就可以将每列中的内容自动填充,不会是的grid表格居左显示
columns:[
{
text:‘商品编号’, dataIndex: ‘ProductID’,editable: true,
wrap : true, //溢出则换行.
flex : 1, //自动填充列
},