Same problem here.
I've two chain combobox in edatagrid.
I need to use, for each combobox, different valueField and textField to chain them and relate data in DB (I pass $prov=valueField variable in php to populate second combobox).
When I edit a combobox it's all ok, but when I deselect the row I see the valueField in cell, not the textField.
Here is the code:
columns:[[
{field:'provincia',title:'Provincia',width:400,
editor:{
type:'combobox',
options:{
url:'combobox_provincia.php',
valueField:'idprovincia',
textField:'siglaprovincia',
onChange:function(value){
var index = $(this).closest('tr.datagrid-row').attr('datagrid-row-index');
var ed = $('#tt').edatagrid('getEditor',{index:index,field:'comune'});
$(ed.target).combobox('reload','combobox_comuninew.php?prov='+value);
alert(value);
}
}
}
},
{field:'comune',title:'Comune',width:400,
editor:{
type:'combobox',
options:{
valueField:'idcomune',
textField:'nomecomune'
}
}
}
]]
I suppose I have to use formatter function for both columns but I don't understand how to implement the function with my code that uses edatagrid.