Posted 12 April 2018, 11:25 pm EST
Hi,
I once asked how to change the default behavior of the FlexGrid filter. I didn’t want the default behavior of it showing the value filter but instead did want it to start in the conditions filter with the Contains filter as a default. I got some helpful sample code looking like this:
this.gridFilter.filterChanging.addHandler((gridFilter: wjGridFilter.FlexGridFilter, e: any) => {
var cf = gridFilter.getColumnFilter(e.col);
if (!cf.valueFilter.isActive && cf.conditionFilter.condition1.operator == null) {
cf.filterType = wjGridFilter.FilterType.Condition;
cf.conditionFilter.condition1.operator = wjGridFilter.Operator.CT;
}
});
This has worked fine with version 2017 of the Wijmo controls but since I updated to 5.20181.436 I’m running into problems. The code still executes but when the filter dialog is first shown it shows the value filter. Only when it is opened a second time will the changes have been applied.
Can you please help me either with a bugfix or with some sample code on how to achieve the wanted behavior in the current version.
Thanks and best regards.