Group/Filer with Buttons
Group/Filer with Buttons
![cklaslan](https://secure.gravatar.com/avatar/7ed04137d342e94055a1861b6ad4e6b1/?default=https%3A%2F%2Fvanillicon.com%2F7ed04137d342e94055a1861b6ad4e6b1_200.png&rating=g&size=120)
I would love to duplicate the group feature of this page https://www.datatables.net/reference/option/
The entire datatable is presented at first but multiple buttons can be pressed/unpressed to show/hide mutilple row groups. How can this be duplicated?
This discussion has been closed.
Answers
Not too hard to do. You need an onClick or onChange event that fires a call to DT's filter.
I have a page with a radio button, so in addition to the radio button HTML, I have this.
later on the page I have this
Columns are zero based indexed, so my 4th column is the year I am filtering by.