Change the text filter with a button on data grid 2 without refreshing the whole page

This problem is deceivingly difficult, I want to add a button to my data grid that when clicked will change the the text filter. The problem lies in that I don't want to refresh the whole page I just want specific filter to change.    I feel like I've won half the battle since I am able to refresh a text input in the same area on my button click but I can't figure out how to refresh the text filter        
1 answers

I found a solution in the data widgets marketplace module that does exactly what I needed it to do, for anyone who faces a similar problem, look into the


Data Widgets module > Client activites > Set_Filter javascript action


This action allows you to set the filter using its name to whatever you need it to be