解决方案 »

  1.   

    用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>
      

  2.   

    idField string Indicate which field is an identity field.这个要设置的,否则没办法区分的,就会认为是一条的额
      

  3.   

    Quote: 引用 5 楼 qq1099866969 的回复:

    Quote: 引用 4 楼 xuexiaodong2009 的回复:

    idField string Indicate which field is an identity field.找到解决方法了:请看截图