Posted 17 September 2020, 3:36 am EST
How can I change the filter type to default to condition while keeping the value filter available?
I know I can change the filter type to condition like the code below from the example in the filterChanging documentation.
But if I do this I lose the “Filter by Condition | Filter by Value” links to change between the two.
self.Grid.Filter().filterChanging.addHandler(function (s, e)
{
var cf = self.Grid.Filter().getColumnFilter(e.col);
if (!cf.valueFilter.isActive && cf.conditionFilter.condition1.operator == null)
{
cf.filterType = wijmo.grid.filter.FilterType.Condition;
cf.conditionFilter.condition1.operator = wijmo.grid.filter.Operator.CT;
}
});
