I think you missed something in datagrid demo...
How to create a datagrid with some data already checked or selected?
I found method in docs about using selectRow and checkRow..
but it just worked only in client side (checked or selected after datagrid successfully loaded).....
<table id="package_group_table" class="easyui-datagrid" style="width:250px;height:150px"
data-options="url:admin/packagegroup/list_package_group_for_checkbox',singleSelect:false">
<thead>
<tr>
<th data-options="field:'PACKAGE_GROUP_ID'">ID</th>
<th data-options="field:'PACKAGE_GROUP_ALIAS'">Name</th>
<th data-options="field:'CHECKED'" formatter="formatCheck">Status</th>
<th data-options="field:'CHECKED_STATUS',checkbox:true">Ck</th>
</tr>
</thead>
</table>
<input type="button" onclick="wawa();" value="tes"></input>
<script type="text/javascript">
function formatCheck(val,row,idx){
if(val+'' == 'true'){
$('#package_group_table').datagrid('checkRow', idx);
}
}
</script>
Code above isnt working...
CHECKED field populated with true and false data...