@Varta: I’ve got the same problem. I try to populate a second select with the result of a first one. Anybody help me?
My code:
//PAIS (Visible)
{ name:’pais’,
index:’pais’,
width:90,
align: “center”,
// — Edición —
editable:true,
formoptions:{elmprefix:”(*)” },
editrules:{required:true},
edittype: ‘select’,
editoptions: {
dataEvents: [{
type: ‘change’,
fn: function(e) {
var codpais = e.currentTarget.value;
var prov = $.ajax ({
url: ‘dbprovincia.php?p=’+codpais,
async: false}).responseText;
$(“#grid”).setColProp(‘provincia’, {editoptions: {dataUrl: prov }});
}
}],
dataUrl: ‘dbpais.php’,
defaultValue: ‘España’,
},
},
//PROVINCIA (Oculto)
{ name:’provincia’,
index:’provincia’,
width:90,
align: “center”,
// — Edición —
editable:true,
hidden: true,
formoptions:{elmprefix:”(*)” },
editrules: {edithidden: true, required:true},
edittype:’select’,
editoptions: {
dataUrl: ‘dbpronvicias.php’,
},
},
Thanks!