在datagrid中怎么实现checkbox的单选

在初始化datagrid的时候
$('#bj_datagrid').datagrid({
			url : basePath+'/jxBjController/datagrid.do',
			fit : true,
			fitColumns : true,
			border : false,
			pagination : true,
			idField : 'id',
			pageSize : 10,
			pageList : [ 10, 20, 30, 40, 50 ],
			checkOnSelect : true,
			selectOnCheck : true,
			singleSelect : true,
			columns : [ [
			{
				field : 'id',
				title : '编号',
				width : 150,
				checkbox : true
			},
				   {field:'bh',title:'班号',align:'center',sortable:true,width : 150,
						formatter:function(value,row,index){
							return row.bh;
						}
					}	   {field:'bzxh',title:'班长学号',align:'center',sortable:true,width : 150,
						formatter:function(value,row,index){
							return row.bzxh;
						}
					}			] ]
					
		});

你可能感兴趣的:(datagrid,checkbox,单选)