@syncfusion/ej2-treegrid 30.1.37 → 30.1.38

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.
@@ -1473,6 +1473,13 @@ var Selection = /** @__PURE__ @class */ (function () {
1473
1473
  this.headerSelection();
1474
1474
  }
1475
1475
  }
1476
+ else {
1477
+ if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh')
1478
+ && !isRemoteData(this.parent)) {
1479
+ this.selectedItems = [];
1480
+ this.selectedIndexes = [];
1481
+ }
1482
+ }
1476
1483
  }
1477
1484
  };
1478
1485
  Selection.prototype.getCheckedrecords = function () {
@@ -5909,7 +5916,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5909
5916
  var checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
5910
5917
  var checkedLen = this.grid.getSelectedRowIndexes().length;
5911
5918
  var totalRecords = this.getCurrentViewRecords().length;
5912
- if (checkedLen === totalRecords) {
5919
+ if (totalRecords > 0 && checkedLen === totalRecords) {
5913
5920
  var spanEle = checkedTarget.nextElementSibling;
5914
5921
  removeClass([spanEle], ['e-stop', 'e-uncheck']);
5915
5922
  addClass([spanEle], ['e-check']);