checkbox-hide-show-rows

Questionscheckbox-hide-show-rows
Jeff asked 2 days ago

Maybe I overlooked it, but I could not find an example of adding a checkbox to the toolbar or in the page HTML which will show/hide rows, when ticked/unticked, based on a value in the rows.

On page load, I need all rows that contain the value \”surplus\” (in the column named \”status\”) to be hidden. When the checkbox is ticked, it will show those hidden rows  along with all of the other rows. Can someone please provide an example?

2 Answers
Abu Ghufran Staff answered 1 day ago

You can review https://www.gridphp.com/demo/demos/appearance/toolbar-button.php

Code: https://www.gridphp.com/demo/demos/appearance/toolbar-button.phps

Line 167-184: Code to add toolbar button

Line 51: Callback logic to filter rows.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Jeff answered 4 hours ago

Thank you! Sorry I overlooked that example. I was able to use it as a guide and get it working. Still testing.

Your Answer

16 + 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?