IgxGrid operator field went missing in filteringExpressionTree #12484
-
In the igx-grid component, we store the filteringExpressionTree property of the grid in the database to store the filters of each user. This is the function I use to convert the filters : Link So while all this is happening filterState for one user had operator field missing. Link for filterState So my main question being, What can be the reason that operator field went missing for that particular filterState? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @KaushikEDS, I assume that the missing operator you are talking about is the operator value of the first filteringOperands array of the filteringExpressionTree property. I have created a small sample trying to reproduce the described behavior. I am using igx-grid component with filtering feature enabled as allowFiltering property set to true and with qucikFilter mode. I perform multiple filters on the grid using your custom function for converting the filteringExpressionTree, but still cannot reproduce the described scenarios with the missing operand. However, on my side everything works as expected and I am able to get all operators and all values from filteringExpressionTree. What I'm assuming is that the described behavior is due to the operation of your custom function and this particular end case of this filterState. Further information on exactly which operator is missing in your case would be helpful. Here you will find my sample for your reference. Please feel free to modify it with your custom logic of your grid, function and filterState, and send it back to me along with steps to reproduce for further investigation. Alternatively, if the behavir cannot be replicated, please feel free to provide your own sample. |
Beta Was this translation helpful? Give feedback.
Hello @KaushikEDS,
I assume that the missing operator you are talking about is the operator value of the first filteringOperands array of the filteringExpressionTree property.
I have created a small sample trying to reproduce the described behavior. I am using igx-grid component with filtering feature enabled as allowFiltering property set to true and with qucikFilter mode. I perform multiple filters on the grid using your custom function for converting the filteringExpressionTree, but still cannot reproduce the described scenarios with the missing operand. However, on my side everything works as expected and I am able to get all operators and all values from filteringExpressionTree.
What…