大伙儿有木有遇到easyui的datagrid checkbox多选后不能得到多个值? 附上代码
大家有木有遇到easyui的datagrid checkbox多选后不能得到多个值? 附上代码。


------解决方案--------------------
1.3.2测试么问题。
------解决方案--------------------
用1.3.5的datagrid\checkbox.html测试也没有问题,楼主是不是做了其他操作了

------解决方案--------------------
idField string Indicate which field is an identity field.
这个要设置的,否则没办法区分的,就会认为是一条的额
------解决方案--------------------
1.3.2测试么问题。
------解决方案--------------------
用1.3.5的datagrid\checkbox.html测试也没有问题,楼主是不是做了其他操作了
<script>
function CsmOrder() {
var rows = $('#dg').datagrid('getChecked');
console.log(rows.length)
}
</script>
<table id="dg" class="easyui-datagrid" title="CheckBox Selection on DataGrid" style="width:700px;height:250px"
data-options="fitColumns:true,singleSelect:false,selectOnCheck:false,checkOnSelect:true,toolbar:[{text:'定制',handler:CsmOrder}],rownumbers:true,singleSelect:true,url:'datagrid_data1.json',method:'get'">
<thead>
------解决方案--------------------
idField string Indicate which field is an identity field.
这个要设置的,否则没办法区分的,就会认为是一条的额