@syncfusion/ej2-treegrid 33.1.45 → 33.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6852,7 +6852,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6852
6852
  let temp;
6853
6853
  let field;
6854
6854
  const gridColumns = isNullOrUndefined(column) ? this.grid.getColumns() : column;
6855
- if (this.treeColumnIndex !== -1 && this.columnModel[this.treeColumnIndex] &&
6855
+ if (this.treeColumnIndex !== -1 && !isNullOrUndefined(this.columnModel) && this.columnModel[this.treeColumnIndex] &&
6856
6856
  !isNullOrUndefined(this.columnModel[this.treeColumnIndex].template)) {
6857
6857
  temp = this.columnModel[this.treeColumnIndex].template;
6858
6858
  field = this.columnModel[this.treeColumnIndex].field;
@@ -8260,7 +8260,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
8260
8260
  }
8261
8261
  partialFilterUpdate(args) {
8262
8262
  const gridFiltered = args.gridFiltered;
8263
- this.notify('updateFilterRecs', { data: gridFiltered });
8263
+ if ((this.allowFiltering && this.filterModule && this.grid.filterSettings.columns.length) ||
8264
+ (this.grid.searchSettings.key.length > 0)) {
8265
+ this.notify('updateFilterRecs', { data: gridFiltered });
8266
+ }
8264
8267
  }
8265
8268
  /**
8266
8269
  * Filters the TreeGrid rows based on a specified column and filter criteria.
@@ -16038,7 +16041,7 @@ class VirtualScroll {
16038
16041
  const dm = new DataManager(pageingDetails.result);
16039
16042
  const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
16040
16043
  const parents = dm.executeLocal(new Query().where(expanded));
16041
- const isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && pageingDetails.actionArgs.action !== 'clear-filter') ||
16044
+ const isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && (pageingDetails.actionArgs.action !== 'clear-filter' && pageingDetails.actionArgs.action !== 'clearFilter')) ||
16042
16045
  (!isNullOrUndefined(this.parent['filterModule']) && (this.parent['filterModule'].filteredResult && this.parent['filterModule'].filteredResult.length > 0));
16043
16046
  const isFlatHierarchy = this.parent.filterSettings.hierarchyMode === 'Child' ||
16044
16047
  this.parent.filterSettings.hierarchyMode === 'None';