Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
Open advanced filtering dialog programatically
posted

Hello.

I've a grid using advanced filter. I want to add a button in my page (outside the grid) that opens the filtering dialog. As I couldn't find any method in the documentation (http://help.infragistics.com/jQuery/2014.2/ui.igGridFiltering) I used this line:

grid.find(".ui-iggrid-filterbutton:first").click();

That wasn't very nice or clean but it worked. It also added a new condition for the filters with the first column selected. That happened because I was triggering the click in the filtering button of the first column's header. I wasn't very worried about it, I didn't think users would find that annoying.

After a few time I had to add Sorting feature to the grid. As the headers changed (now they have 'Feature Chooser Button') my code to open the dialog stopped working. I've tried a new workaround which was finding the filters li in the 'Feature Chooser Popover' and clicking it. However it doesn't work and I would like some clean solution that will not stop working when I change grid settings.

Summing up: how can I open the advanced filtering dialog programatically?

Thanks,

Diego