'How to add filters (server-side) with GridJS

I want to know, how I can add filters in GridJS to filter data from the server, I have a dropdown list of filters above the table. I want that when someone clicks on a particular filter the table should be re-rendered with the filter.

How can I implement this?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source