Hi everybody,
i would like to know if there is a possibility to disable inline editing,edit,delete action on conditional value ?
ex: i have a table with invoice , when invoice is already send, field "sended" is put at true.
condition would be if "sended"== true no possibility for edit/delete. to prevent changing a record which can not be changed.
Thanks
Please refer demos/editing/column-access.php
This demo disables editing when gender = male.
You can alter it accordingly.
Thanks Abu ,
I missed that part of the demo folder , that's exactly what I was looking.
Regards
Hello Abu.
I same the same question… my versiĆ³n of PHPgrid is the 1.4.8 (not free)
Can I use this function with this version?… can you send me the sample?
Thanks!
Can we conditionally set $col["editable"]
to true
or false
based on the values of other columns?
You can set this column as readonly based on condition.
https://www.gridphp.com/demo/demos/editing/column-access.phps
Line 66: set callback function
Line 231-238: callback function that will make gender field readonly when have certain clientids.