with this line i disable fields in blur event based in the value of a field:
$col[“editoptions”] = array(“onblur”=>”update_fields()”);
the field “fecha” is disabled correctly, but the field “curp”, doesn’t…
is for the type??? “file”…..
this is the set of the fields:
$col = array();
$col[“title”] = “Captura”;
$col[“name”] = “fecha”;
$col[“editable”] = true; // this column is editable
$col[“formatter”] = “date”;
$col[“show”] = array(“list”=>true,”edit”=>true,”add”=>true,”view”=>true);
$cols[] = $col;
$col = array();
col[“title”] = “Cargar”;
$col[“name”] = “curp”;
$col[“width”] = “150”;
$col[“editable”] = true; // this column is editable
$col[“edittype”] = “file”; // render as file
$col[“upload_dir”] = “docs”; // upload here
$col[“editrules”] = array(“ifexist”=>”override”); // “rename”, “override” can also be set
$col[“show”] = array(“list”=>true,”edit”=>true,”add”=>true,”view”=>true);
$cols[] = $col;
Upload column is little complex and will not disable with html attribute.
Instead of disabling, you can hide complete row.
$(“#tr_curp”).hide();
and $(“#tr_curp”).show(); to show again.