@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.45
3
+ * version : 33.1.46
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-treegrid",
3
- "version": "33.1.45",
3
+ "version": "33.1.46",
4
4
  "description": "Essential JS 2 TreeGrid Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~33.1.45",
12
12
  "@syncfusion/ej2-data": "~33.1.45",
13
- "@syncfusion/ej2-grids": "~33.1.45",
13
+ "@syncfusion/ej2-grids": "~33.1.46",
14
14
  "@syncfusion/ej2-popups": "~33.1.44"
15
15
  },
16
16
  "devDependencies": {},
@@ -130,7 +130,7 @@ var VirtualScroll = /** @class */ (function () {
130
130
  var dm = new DataManager(pageingDetails.result);
131
131
  var expanded = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
132
132
  var parents = dm.executeLocal(new Query().where(expanded));
133
- var isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && pageingDetails.actionArgs.action !== 'clear-filter') ||
133
+ var isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && (pageingDetails.actionArgs.action !== 'clear-filter' && pageingDetails.actionArgs.action !== 'clearFilter')) ||
134
134
  (!isNullOrUndefined(this.parent['filterModule']) && (this.parent['filterModule'].filteredResult && this.parent['filterModule'].filteredResult.length > 0));
135
135
  var isFlatHierarchy = this.parent.filterSettings.hierarchyMode === 'Child' ||
136
136
  this.parent.filterSettings.hierarchyMode === 'None';
@@ -2938,7 +2938,7 @@ var TreeGrid = /** @class */ (function (_super) {
2938
2938
  var temp;
2939
2939
  var field;
2940
2940
  var gridColumns = isNullOrUndefined(column) ? this.grid.getColumns() : column;
2941
- if (this.treeColumnIndex !== -1 && this.columnModel[this.treeColumnIndex] &&
2941
+ if (this.treeColumnIndex !== -1 && !isNullOrUndefined(this.columnModel) && this.columnModel[this.treeColumnIndex] &&
2942
2942
  !isNullOrUndefined(this.columnModel[this.treeColumnIndex].template)) {
2943
2943
  temp = this.columnModel[this.treeColumnIndex].template;
2944
2944
  field = this.columnModel[this.treeColumnIndex].field;
@@ -4377,7 +4377,10 @@ var TreeGrid = /** @class */ (function (_super) {
4377
4377
  };
4378
4378
  TreeGrid.prototype.partialFilterUpdate = function (args) {
4379
4379
  var gridFiltered = args.gridFiltered;
4380
- this.notify('updateFilterRecs', { data: gridFiltered });
4380
+ if ((this.allowFiltering && this.filterModule && this.grid.filterSettings.columns.length) ||
4381
+ (this.grid.searchSettings.key.length > 0)) {
4382
+ this.notify('updateFilterRecs', { data: gridFiltered });
4383
+ }
4381
4384
  };
4382
4385
  /**
4383
4386
  * Filters the TreeGrid rows based on a specified column and filter criteria.