xx.js
$(\'#synFromTable\').datagrid({url:\'<c:url value=\"/receive/getReceviceWorkItems\"/>\',queryParams:getParams(),//提交参数toolbar:\'#synFromToolbar\',//表头工具栏pagination:true,//显示分页pagePosition:\'bottom\',//分页栏出现位置pageNumber:1,//初始页码pageSize:10,//初始每页显示记录数量singleSelect:true,nowrap: false,//设置内容多时换行,false换行columns:[[**{field:\'docId\',title:\'选择\',formatter: function(value,row,index){return \'<input name=\"docId\" type=\"radio\" value=\"\'+value+\'\" />\';},width:\"4%\"},**{field:\'index\',title:\'序号\',formatter: function(value,row,index){return (index+1);},width:\"4%\"},{field:\'displayNumberReceive\',title:\'编号\',width:\"18%\"},]],**onClickRow:function(index,row){$(\"input[type=radio]\").val([row.docId]).attr(\"checked\",true);}**});