doesn't disabled…

Questionsdoesn't disabled…
aron asked 4 years 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 4 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

7 + 8 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?