-
Notifications
You must be signed in to change notification settings - Fork 2
Description
How do you filter programmatically?
filteringExpressionsTree assigned to the grid results in errors and incompatibility.
WC
eg.
https://codesandbox.io/p/sandbox/strange-tu-9d8dfl
How to get this working in React?
https://codesandbox.io/p/sandbox/vigilant-river-8vf3gl
const gridFilteringExpressionsTree = new IgrFilteringExpressionsTree(
FilteringLogic.And
);
const productFilteringExpressionsTree = new IgrFilteringExpressionsTree(
FilteringLogic.And,
"ProductName"
);
const productExpression = {
condition: IgrStringFilteringOperand.instance().condition("contains"),
fieldName: "ProductName",
ignoreCase: true,
searchVal: "c",
};
productFilteringExpressionsTree.filteringOperands.push(productExpression);
gridFilteringExpressionsTree.filteringOperands.push(
productFilteringExpressionsTree
);
this.grid.filteringExpressionsTree = gridFilteringExpressionsTree;