To disable a editor on one column, you must empty the 'editor' property of specified column before editing a row. Please try to use 'onBeforeEdit' event.
$('#dg').edatagrid({
onBeforeEdit:function(index,row){
if (!row.isNewRecord){
var col = $(this).edatagrid('getColumnOption','itemid');
col.editor1 = col.editor;
col.editor = null;
}
},
onAfterEdit:function(){
var col = $(this).edatagrid('getColumnOption','itemid');
if (col.editor1){
col.editor = col.editor1;
}
},
onCancelEdit:function(){
var col = $(this).edatagrid('getColumnOption','itemid');
if (col.editor1){
col.editor = col.editor1;
}
}
});