Checkbox clickable for all rows

QuestionsCheckbox clickable for all rows
Khaled asked 9 years ago

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

3 Answers
Abu Ghufran answered 9 years ago

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.

Abu Ghufran answered 9 years ago

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-

Your Answer

8 + 8 =

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?