prevent-editing-for-select-conditions

Questionsprevent-editing-for-select-conditions
Shannon DeWitt asked 3 years ago

Trying to prevent accidental data issues. Can I:

Prevent certain field(s) from being edited in grid but allow popup editing. For Instance I would like a READONLY title to show in the popup but not be editable.

 

Prevent certain field(s) from being edited when doing bulk edit. Some fields should NOT be bulk edited but ok individually. Any help would be great.

 

Thanks!

1 Answers
Abu Ghufran Staff answered 3 years ago

1) You can hide certain fields from bulk edit by following code.

$col["show"] = array("list"=>true, "add"=>true, "edit"=>true, "view"=>true, "bulkedit"=>false);

2) You can refer: https://www.gridphp.com/docs/column-options/#readonly-column

$col["editrules"]["readonly"] = true;
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

8 + 18 =

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?