readonly-on-edit-diaglog

Questionsreadonly-on-edit-diaglog
Mukti asked 5 days ago

$col = array();
$col["title"] = "Staff Code";
$col["name"] = "EmpCode";
$col["width"] = "70";
$col["sortable"] = false;
$col["search"] = true;
$col["editable"] = true;
$col["show"] = array("list"=>true,"add"=>true,"edit"=>true);
$col["editrules"] = array("required"=>true);
$col["editrules"]["readonly"] = true;
$col["editoptions"] = array("style"=>" width: 200px");
$cols[] = $col;

screenshot url: https://imgur.com/a/DhNfbYM

4 Answers
Abu Ghufran Staff answered 5 days ago

Hello,

I understand the issue you are facing. Please share complete grid code using gist.

Attach code here and paste link in question.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 5 days ago

Hello,

I regenerated the scenario with your code and unable to get this issue.

Please share your code.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 4 days ago

You need to either remove from all columns ‘formoptions’.

$col["formoptions"]

Or add with all columns.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Mukti replied 4 days ago

Thank you, adding $col[“formoptions”] = array(“rowpos”=>”1”, “colpos”=>”1”); on that column worked for me. Thanks

Your Answer

17 + 19 =

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?