Your 'cfr_name' field value does not match the combobox's value. Please use another 'cfr_id' field to bind the combobox editor and then define the 'formatter' function to display the 'cfr_name' field value. The code looks like this:
<th data-options="field:'cfr_id',width:'6%',sortalbe:true,align:'center',
formatter:function(value,row){
return row.cfr_name;
},
editor:{
type:'combobox',
options:{
valueField:'id',
textField:'text',
method:'get',
url:'/demand/?action=get_cfr_list',
}
}">CFR</th>
Also, you need to update the 'cfr_name' field value after the editing action is finished.
$('#dg').datagrid({
onEndEdit: function(index,row){
var ed = $(this).datagrid('getEditor',{index:index,field:'cfr_id'});
row.cfr_name = $(ed.target).combobox('getText');
}
})