When configure the tree row models from DataSet, you can specify the row filter by Expression or callback function through rowFilter property, so that it can only get the data rows matching the criteria. For example, in the grid below, it specifies the filter which gets only "The first 10 rows (top n)" and "The last 10 rows (bottom n)" or display "Only the updated rows".
If specify OperateOptions.passiveFiltering as true, even if the top rows have been excluded from the filter, they will also be displayed if the included descendants are remained after the filtering.
grdMain.setRowFilter({
callback: null,
expression: "row < 10"
});
grdMain.setRowFilter({
callback: null,
expression: "row >= rowcount - 10"
});
grdMain.setRowFilter({
expression: "state == 'u'",
callback: null
});
grdMain.setRowFilter({
expression: null,
callback: null
});
Actually, Row Filter is managed by RowFilter object from the row model. And, since the row filter is applied before the column filters in the row model level rather than the grid, it will be reflected in all grids when two or more grids share the row model.