I have a grid that is setup at init with some columns having filters in the header. I am looking to extract current filter values from from the grid so that I can save them and allow the user to load them all as a set again later.
I want to do something like:
col_idx = 0;
if (dhx_grid.hasFilter(col_idx)) {
filter_val = dhx_grid.getFilterValue(col_idx);
}
and then at some later date…
dhx_grid.filterBy(col_idx, filter_val);
I’ve seen getFilterElement, but that says it doesn’t work for text based filters (most of mine are). Any suggestions?