Hi everyone,
I have a value in my database (0 or 1) in other words yes / no and I am reflecting it as a checkbox on my grid. It works fine when I choose to edit a row, but I want all rows to have the checkbox available and clickable without having to choose to edit each row individually. I also dont want the multiselect option as it would still require to click on "edit" then change the setting. I need it to be a very simple check / uncheck which can be done on multiple rows quickly
I would recommend to use bulk edit function. In that, you can use multiselect to pick the rows and apply custom bulk operation on selected rows.
For e.g. enable/disable selected rows will be done in 2 steps. Rows selection and Custom Bulk Update button.
Refer demos/editing/bulk-edit.php, it shows how to change desc on the fly.
You can also use custom formatter and with onclick event call ajax call to update field.
Code: http://hastebin.com/refadonuci.php
See functions cboxFormatter,updateRow
Alternate answer:
https://phpgrid.desk.com/customer/portal/questons/5853012-how-to-add-a-checkbox-in-a-cell-that-is-always-clickable-