doesn't disabled…

Questionsdoesn't disabled…
aron asked 2 months ago

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;


1 Answers
Abu Ghufran Staff answered 1 month ago

Upload column is little complex and will not disable with html attribute.
Instead of disabling, you can hide complete row.


and $(“#tr_curp”).show(); to show again.

Abu Ghufran - Dev Team
PHP Grid Framework
Your Answer

11 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!