Posted 2 March 2020, 6:11 pm EST
Hello,
I am trying to get column filters to behave a certain way:
- Disable Value filters / only show Condition filters
- Set the Condition filter’s default operator to ‘Contains’ instead of ‘(not set)’ upon opening the column condition filter
- Persist column filter settings throughout a user session
I know I can set a FlexGridFilter’s FilterType to ‘Condition’ only, and I can set an operator from inside a FlexGridFilter’s filterChanging event handler (following example from https://www.grapecity.com/wijmo/api/classes/wijmo_grid_filter.flexgridfilter.html#filterchanging). But sometimes the operator still inconsistently shows ‘(not set)’ even though I set it to ‘Contains’.
From my testing, the default operator appears correctly if I open a column filter that has both a Condition Filter and Value Filter; in these cases it opens the Value Filter by default, forcing me to click the Condition Filter to see its operator value which appears correctly. However if I open a column filter that only has a Condition Filter, then the default operator still incorrectly appears as ‘(not set)’; if I reopen that same filter, the operator value then correctly appears as ‘Contains’ instead of ‘(not set)’. It appears as if the internal operator value is set to ‘Contains’, but I need to “refresh” the display text to see that value, which is why reopening a Condition-only-filter shows the correct operator value, and a column filter with both Condition and Value filters will show the correct operator value after I click the Condition filter mode.
Can I get assistance to make the column filters behave as stated above? Some column filters will have both Condition and Value filters, while others will only have Condition filters. But in either case, when I open the column filter, I want the default operator for Condition Filter to show ‘Contains’ instead of ‘(not set)’.