$('#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;
}
} ] ]
});
转载于:https://my.oschina.net/wfire/blog/132195