Change Boolean icon

QuestionsChange Boolean icon
Manolo Garrido asked 1 week ago
Is it possible to change the checkbox image in a checkbox field to an 
open or closed padlock depending on the value of the field?
3 Answers
Abu Ghufran Staff answered 1 week ago

Hi,

I have prepared a demo for you.

Few things to consider, the first column of the grid must be PK of the table to perform edit/delete operations.

For this we have positioned second the lock/unlock column and made the first column (pk) as hidden.

https://gist.github.com/gridphp/c9bf9cf8a9cdf5a715db567e2fbe1169

Screenshot:

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
PatxiRimoyo answered 1 week ago

ok, this works for when the gender value changes. But I\’m looking for something similar to: https://drive.google.com/file/d/1Th8ZPKITiZc3oFPiEMSlTu1ozWO-y3_k/view?usp=drive_link an action button to lock and unlock a row would be nice…. does it exist?

Abu answered 1 week ago

I am unable to understand.

When you lock a field, is there any database field that store which row is locked?

Your Answer

3 + 9 =

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?