最近开始使用Extjs进行开发, 会遇到一些各种各样的问题, 在此希望记录下来, 给和我一样新入手人一点提示.
问题: 在ColumnModel下添加复选框, 添加完成之后, 此复选框只能单选, 没办法同时选中多个选项.
前期代码如下:
this.colModel = new Ext.grid.ColumnModel({
columns : [this.rowNum
,
new Ext.grid.CheckboxSelectionModel(),
{
dataIndex : 'ID',
singleSelect : false
}
}
this.aGrid = new Ext.grid.EditorGridPanel(
{
id : 'aGrid',
title : 'Category Definition',
region : 'center',
height : 250,
autoScroll : true,
store : this.aStore,
selModel : new Ext.grid.CheckboxSelectionModel({
singleSelect : false}),
colModel : this.aGrid,