EXTJS4.0 grid.Panel复选框隐藏列头的复选框
var EquipmentTypeGrid = function(store) {
var positionGrid = Ext.create('Ext.grid.Panel', {
id : 'GridPanelEquipmentType',
selModel : {
selType : 'checkboxmodel'
},
multiSelect : true,
store : store,
border : false,
dockedItems : [ {
xtype : 'toolbar',
items : [ {
itemId : 'add',
iconCls : 'glzx-accordion-item',
text : '增加',
handler : function() {
alert('aa');
}
}, '-', {
itemId : 'modify',
iconCls : 'glzx-accordion-item',
text : '修改',
disabled : true,
handler : function() {
}
}, '-', {
itemId : 'delete',
iconCls : 'glzx-accordion-item',
text : '删除',
disabled : true,
handler : function() {
}
} ]
} ],
viewConfig : {
stripeRows : true
},
columns : [ {
width : 40,
checked : false,
header : 'ID1',
dataIndex : 'deviceTypeID1',
// xtype:'booleancolumn',
flex : 1
}, {
width : 40,
checked : false,
header : 'ID',
dataIndex : 'deviceTypeID',
flex : 1
}, {
width : 40,
header : '序号',
dataIndex : 'seqNO',
flex : 1
}, {
header : '类型名称',
dataIndex : 'deviceTypeName',
flex : 1
} ]
});
positionGrid.on('itemdblclick', function(view, record, item, index, e,
eOpts) {
var ID = record.get('deviceTypeID');
PositonDevice(true, ID);
});
return positionGrid;
};
如题 我已经把模式换成复选框模式了,但是我不想用框架自带的复选框全选功能(列头那个复选框我不想要)
无奈得不到列头复选框的ID没要隐藏 求高手指点
注:是extjs4.0的版本