@syncfusion/ej2-treegrid 30.1.37 → 30.2.4

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']);
@@ -10665,7 +10672,7 @@ class ExcelExport {
10665
10672
  this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
10666
10673
  }
10667
10674
  if (!isNullOrUndefined(excelExportProperties)) {
10668
- if (!isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
10675
+ if (!this.isLocal() && !isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
10669
10676
  return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
10670
10677
  }
10671
10678
  if (excelExportProperties.exportType === 'CurrentPage') {
@@ -14478,7 +14485,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
14478
14485
  && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== ''))) {
14479
14486
  const viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
14480
14487
  this.previousInfo = viewInfo;
14481
- if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
14488
+ if (this.prevInfo && (isRemoteData(this.parent.root) && viewInfo.event !== 'model-changed') && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
14482
14489
  || ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
14483
14490
  || (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
14484
14491
  && this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {