@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.
@@ -1353,6 +1353,13 @@ class Selection {
1353
1353
  this.headerSelection();
1354
1354
  }
1355
1355
  }
1356
+ else {
1357
+ if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh')
1358
+ && !isRemoteData(this.parent)) {
1359
+ this.selectedItems = [];
1360
+ this.selectedIndexes = [];
1361
+ }
1362
+ }
1356
1363
  }
1357
1364
  }
1358
1365
  getCheckedrecords() {
@@ -5593,7 +5600,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5593
5600
  const checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
5594
5601
  const checkedLen = this.grid.getSelectedRowIndexes().length;
5595
5602
  const totalRecords = this.getCurrentViewRecords().length;
5596
- if (checkedLen === totalRecords) {
5603
+ if (totalRecords > 0 && checkedLen === totalRecords) {
5597
5604
  const spanEle = checkedTarget.nextElementSibling;
5598
5605
  removeClass([spanEle], ['e-stop', 'e-uncheck']);
5599
5606
  addClass([spanEle], ['e-check']);