Hello,
First let me list how I use edatagrid :
1)initialize
<table id="cn_datagrid_table" title="When Repeats">
<thead>
<tr>
<th data-options="field:'ck',checkbox:true"></th>
<th data-options="field:'day'" width="30%">Day of Week</th>
<th data-options="field:'repeat_start_time',editor:{type:'timespinner',options:{required:true}}" width="30%">Start Time</th>
<th data-options="field:'duration',editor:{type:'numberbox',options:{precision:0,required:true,min:15,max:150}}" width="30%">Duration</th>
</tr>
</thead>
</table>
var data_grid_ops=$.extend(true,{}, DEFAULT_DATAGRID_OPTIONS,{
pagination:false,
toolbar: "#tb",
fit:false,
data:[{"day_of_week":"1","day":"Monday"},{"day_of_week":"2","day":"Tuesday"},{"day_of_week":"3","day"
:"Wednesday"},{"day_of_week":"4","day":"Thursday"},{"day_of_week":"5","day":"Friday"},{"day_of_week"
:"6","day":"Staturday"},{"day_of_week":"7","day":"Sunday"}]
});
$("#cn_datagrid_table").edatagrid(data_grid_ops);
2)Check on some rows, double click a table row to edit data and click "save row" which call $('#cn_datagrid_table').edatagrid('saveRow')
3)Click "showDebugInfo" , it shows checked row data info.
function showDebugInfo(){
var row=$("#cn_datagrid_table").datagrid("getChecked");
if(row!=null && row.length>0){
$.messager.alert("Message","Checked rows:<br>"+JSON.stringify(row),"info").window({width:800,resizable:true}).window("center");
}else{
$.messager.alert("Message","no row checked.","info");
}
}
The edatagrid (
http://www.jeasyui.com/extension/edatagrid.php) works fine in easyui1.4.5 until I upgrade to version 1.5.
After I checked a row, edit it and save row, I click "showDebugInfo", it showed "no row checked."
Then I manually uncheck and check this row, click "showDebugInfo" again, it showed the checked row info now.
Keep the row checked, I edit the row again, click save row, the "showDebugInfo" shows "no row checked."
So the issue is that the datagrid getChecked function lose efficacy after "endEdit".
Now I have to downgrade to easyui 1.4.5. Hope the easyui team can fix this issue soon.