We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;
The text was updated successfully, but these errors were encountered:
@dkamburov Can you take a look at this? There is some discrepancy with IgrStringFilteringOperand.
Property 'instance' does not exist on type 'typeof IgrStringFilteringOperand'.typescript(2339)
Tried to add "new" but with no luck
const productExpression = { condition: new IgrStringFilteringOperand() .instance() .condition("contains"), fieldName: "ProductName", ignoreCase: true, searchVal: "c", };
Sorry, something went wrong.
No branches or pull requests
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
);
The text was updated successfully, but these errors were encountered: