Class FilteringExpressionsTree

Implements

Constructors

Properties

entity?: string

Sets/gets the entity.

gridExpressionsTree.entity = 'Entity A';
let entity = gridExpressionsTree.entity;

FilteringExpressionsTree

fieldName?: string

Sets/gets the field name of the column where the filtering expression is placed.

gridExpressionTree.fieldName = 'Column Field';
let columnField = expressionTree.fieldName;

FilteringExpressionsTree

filteringOperands: (IFilteringExpression | IFilteringExpressionsTree)[] = []

Sets/gets the filtering operands.

const gridExpressionsTree = new FilteringExpressionsTree(FilteringLogic.And);
const expression = [
{
condition: IgxStringFilteringOperand.instance().condition('contains'),
fieldName: 'Column Field',
searchVal: 'Value',
ignoreCase: false
}];
gridExpressionsTree.filteringOperands.push(expression);
this.grid.filteringExpressionsTree = gridExpressionsTree;
let filteringOperands = gridExpressionsTree.filteringOperands;

FilteringExpressionsTree

operator: FilteringLogic

Sets/gets the operator.

gridExpressionsTree.operator = FilteringLogic.And;
let operator = gridExpressionsTree.operator;

FilteringExpressionsTree

returnFields?: string[]

Sets/gets the return fields.

gridExpressionsTree.returnFields = ['Column Field 1', 'Column Field 2'];
let returnFields = gridExpressionsTree.returnFields;

FilteringExpressionsTree

Sets/gets the type of the filtering expressions tree.

gridExpressionTree.type = FilteringExpressionsTree.Advanced;
let type = expressionTree.type;

FilteringExpressionsTree

Methods