Hello,
I am trying to change the default state of the filter for one of my columns. This column is a dropdown column which can have several options. What I want to do is to not color the button for the dropdown if the filters have the default state, and color it if the filter state is different than the default one.
For instance, let’s assume that I can have the following values for the dropdown from my column {A, B, C, D, E}. My default state is that A, B and C are selected while D and E are not. Whenever the filter state is different I want to have the filter button colored.
What I have done was to manually add/remove the “htFiltersActive” style class in the “afterGetColHeader” hook. This works perfect for most of the times. However when in the table I do not have data for the {D, E} values, and I change on one of my rows the value to D or E, the afterGetColHeader is not called so the “htFiltersActive” style class is not applied.
How can I solve this issue? Can I set a default value for my filter that creates this functionality, or perhaps a way to trigger the afterGetColHeader hooks?
Thank you in advance for your help!
Marius Comiati