level 1
gyj5240
楼主
{ header: '单价', dataIndex: 'Price', type: 'float' }
, {
xtype: 'actioncolumn', id: 'detailDel', header: '删除', width: 50, hidden: false, items: [{ icon: '../ExtJs/resources/icons/delete.png', // Use a URL in the icon config tooltip: '删除', handler: function (grid, rowIndex, colIndex) { store.removeAt(rowIndex); } }] }
像这列,xtype='actioncolumn',我怎么把他隐藏呢?
grid.getColumnModel().setHidden(1, true); 用这个会报错。。。
2011年09月02日 03点09分
1
, {
xtype: 'actioncolumn', id: 'detailDel', header: '删除', width: 50, hidden: false, items: [{ icon: '../ExtJs/resources/icons/delete.png', // Use a URL in the icon config tooltip: '删除', handler: function (grid, rowIndex, colIndex) { store.removeAt(rowIndex); } }] }
像这列,xtype='actioncolumn',我怎么把他隐藏呢?
grid.getColumnModel().setHidden(1, true); 用这个会报错。。。