Please use 'onBeforeEdit' event to set the field editors according to the row values. The code below shows how to achieve this functionality.
$('#tg').treegrid({
onBeforeEdit:function(row){
var col = $(this).treegrid('getColumnOption', 'end');
if (row.name == 'Coding'){
col.editor = null;
} else {
col.editor = 'datebox';
}
}
})