No, it is managed from PHP server side.
If you can explain the whole scenario, i can suggest some alternate.
I want to add two buttons in the toolbar.
When I click the button A,
I want to show the column of "gender" equal to "male".
When I click the button B,
I want to show the column of "gender" equal to "female".
You can add custom toolbar buttons. refer demos/appear/toolbar-button.php
And, to filter the grid based on some value using JS, refer demos/search/search-form.php
You can copy the search-form js code and put it inside onclick event of custom button.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?