Hi Abu,
The old version when I clicked on the left column “+”, the new version is “>”, it showed me the sub grid. But my problem now is that when I click on the “>” column it executes two actions. There is no difference between the left column and the other columns. I need to separate the left column click actions from the others. because they are two different actions.
My code
“$opt[“subGrid”] = true;
$opt[“subgridurl”] = “subdetalle_centrocompras.php?id=”.$idco;
$opt[“subgridparams”] = “rproveedor,rut_proveedores,sucursal”;
$g = array();
$g[“js_on_select_row”] = “do_onselect”;
$grid->set_events($g);”
and javascript
“function do_onselect(id)
{
var rutproveedores = jQuery(‘#list1’).jqGrid(‘getCell’, id,’rut_proveedores’);
jQuery(“#span_extra”).html(rutproveedores);
var proveedorr = jQuery(‘#list1’).jqGrid(‘getCell’, id,’proveedor’);
jQuery(“#span_extra”).html(proveedorr);
parent.creaoc(rutproveedores,proveedorr);
}”
Thank you