@syncfusion/ej2-treegrid 25.1.39 → 25.1.42

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.
@@ -9718,7 +9718,7 @@ class ExcelExport$1 {
9718
9718
  if (!this.isLocal()) {
9719
9719
  this.parent.flatData = [];
9720
9720
  }
9721
- if (property && property.dataSource && this.isLocal()) {
9721
+ if (property && property.dataSource) {
9722
9722
  const flatsData = this.parent.flatData;
9723
9723
  const dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
9724
9724
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -12804,7 +12804,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
12804
12804
  dataBoundEvent() {
12805
12805
  const dataBoundEve = 'dataBound';
12806
12806
  const initialRowTop = 'initialRowTop';
12807
- if (!isNullOrUndefined(this.parent.getRowByIndex(0)) && this.parent.getRows().length && !this[`${initialRowTop}`]) {
12807
+ if (this.parent.getRows().length && !isNullOrUndefined(this.parent.getRowByIndex(0)) && !this[`${initialRowTop}`]) {
12808
12808
  const rowTop = this.parent.getRowByIndex(0).getBoundingClientRect().top;
12809
12809
  const gridTop = this.parent.element.getBoundingClientRect().top;
12810
12810
  if (rowTop > 0) {
@@ -13082,6 +13082,9 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
13082
13082
  this.previousInfo = viewInfo;
13083
13083
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
13084
13084
  const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
13085
+ if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
13086
+ viewInfo.loadNext = false;
13087
+ }
13085
13088
  this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
13086
13089
  this.requestType = 'virtualscroll';
13087
13090
  if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
@@ -13383,14 +13386,14 @@ class VirtualScroll$1 {
13383
13386
  }
13384
13387
  if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
13385
13388
  const modifiedStartIndex = counts.startIndex + (counts.count - counts.endIndex);
13386
- if (counts.startIndex <= modifiedStartIndex && counts.endIndex <= modifiedStartIndex) {
13387
- startIndex = counts.startIndex;
13388
- endIndex = counts.endIndex;
13389
- }
13390
- else {
13389
+ if (counts.count - counts.startIndex <= this.parent.grid.pageSettings.pageSize) {
13391
13390
  startIndex = modifiedStartIndex;
13392
13391
  endIndex = counts.count;
13393
13392
  }
13393
+ else {
13394
+ startIndex = counts.startIndex;
13395
+ endIndex = counts.endIndex;
13396
+ }
13394
13397
  this.parent['isAddedFromGantt'] = false;
13395
13398
  }
13396
13399
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&