I still don't quite understand. Even if the editCell method is executed, the value in the onCellEdit event is still undefined.
For example, if I press the Enter key in the cell, how can I get the char code:
$('#dg').datagrid({
url:'test.php',
//...
onCellEdit:function(index,field,value){
console.log(value) //The initialized value from the pressed char code on keyboard
}
}).datagrid('enableCellEditing')