You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get the filter to be loaded on the grid's initial state. I'm saving the grid's state locally, like hidden columns, filters used and column width. But I can't restore the filters. It just won't work. This is my code:
config is always set and correctly so. But even after adding filters, which is an IFilteringExpressionsTree the property won't reflect that change. What is happening here? Is this a bug or am I missing something?
I checked the source code and noticed a instanceof FilteringExpressionsTree check and tried to implement it locally to see its result and I got a false result, even by forcing it like this:
@eestein, This topic demonstrates how to implement persistence of the IgxGrid component. If you still have issues loading the filtering expressions, could you provide a sample where the issue is reproducible?
Ok, using that example I was able to figure out the problem. I can't persist and just restore filteringExpressionsTree, I need to recreate the object. That was the problem. This behavior is a little bit weird to me, though.
Description
I can't get the filter to be loaded on the grid's initial state. I'm saving the grid's state locally, like hidden columns, filters used and column width. But I can't restore the filters. It just won't work. This is my code:
config
is always set and correctly so. But even after adding filters, which is anIFilteringExpressionsTree
the property won't reflect that change. What is happening here? Is this a bug or am I missing something?I checked the source code and noticed a
instanceof FilteringExpressionsTree
check and tried to implement it locally to see its result and I got a false result, even by forcing it like this:This is weird, because the logging of
tst
shows it has the proper values set, so it wasn't a cast issue. It's all looking a little bit weird to me.Also, since I've opened this ticket. Is there a way to retrieve and set the columns' width?
Steps to reproduce
Explained above
Result
Nothing.
Expected result
The grid would display and react upon the set filters.
Attachments
N/A
The text was updated successfully, but these errors were encountered: