Ext的grid列的宽度

来源:互联网 发布:软件采购对比方案 编辑:程序博客网 时间:2024/06/10 07:48

有谁知道EXT2.0   grid列的宽试呀!

我的代码是这样的,感觉控制不发它的宽度:

 var grid = new Ext.grid.GridPanel({       

 store: jsonStore,  

 columns: [        

    {id:'waybillNo',header: '${app:i18n('waybllNo')}',width: 100,  sortable: true, dataIndex: 'waybillNo'},           

{header: '${app:i18n('stayWhyCode')}',width: 100,  sortable: true, dataIndex: 'stayWhyCode'},           

 {header: '${app:i18n('objTypeCode')}',width: 50,  sortable: true, dataIndex: 'objTypeCode'},       

     {header: '${app:i18n('barScanTm')}',width: 100,  sortable: true, renderer: 'barScanTm', dataIndex: 'barScanTm'},     

       {header: '${app:i18n('barOprCode')}',width: 100,  sortable: true, renderer: 'barOprCode', dataIndex: 'barOprCode'}        ],     

   bbar: new Ext.PagingToolbar({      

   pageSize: 10,       

  store: jsonStore,      

   displayInfo: true,       

  displayMsg: '${app:i18n('displayMsg')}',   

      emptyMsg: '${app:i18n('emptyMsg')}' 

    }),       

 stripeRows: true,  

 autoExpandColumn: 'waybillNo', 

  height:550,   

  width:450,     

  title:'${app:i18n('haveBuild')}'  

  });

原创粉丝点击