@syncfusion/ej2-treegrid 28.1.36 → 28.1.37

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.
@@ -9857,8 +9857,7 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
9857
9857
  if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
9858
9858
  if (notifyArgs.virtualInfo.direction !== 'right' && notifyArgs.virtualInfo.direction !== 'left') {
9859
9859
  if (!((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
9860
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))
9861
- || notifyArgs.virtualInfo.blockIndexes.length === 1) {
9860
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent))) {
9862
9861
  notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
9863
9862
  }
9864
9863
  }
@@ -9867,7 +9866,7 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
9867
9866
  }
9868
9867
  }
9869
9868
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
9870
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
9869
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
9871
9870
  return super.generateRows(data, notifyArgs);
9872
9871
  }
9873
9872
  else {
@@ -9888,7 +9887,7 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
9888
9887
  const clear = ['paging', 'refresh', 'sorting', 'filtering', 'searching', 'reorder',
9889
9888
  'save', 'delete'].some((value) => action === value);
9890
9889
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
9891
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
9890
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
9892
9891
  const model = 'model';
9893
9892
  const currentPage = this[`${model}`].currentPage;
9894
9893
  if (clear) {
@@ -13733,12 +13732,27 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
13733
13732
  }
13734
13733
  }
13735
13734
  }
13736
- if (((downScroll && (scrollArgs.offset.top < (rowHeight * this.totalRecords)))
13735
+ if (isRemoteData(this.parent) || ((downScroll && (scrollArgs.offset.top < (rowHeight * this.totalRecords)))
13737
13736
  || (upScroll)) || (scrollArgs.direction === 'right' || scrollArgs.direction === 'left') ||
13738
13737
  ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
13739
13738
  && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') && (downScroll || upScroll) || isCountRequired(this.parent))) {
13740
13739
  const viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
13741
13740
  this.previousInfo = viewInfo;
13741
+ if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
13742
+ || ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
13743
+ || (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
13744
+ && this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
13745
+ this.parent.removeMaskRow();
13746
+ this.parent.notify('removeGanttShimmer', { requestType: 'hideShimmer' });
13747
+ if (Browser.isIE) {
13748
+ this.parent.hideSpinner();
13749
+ }
13750
+ this.requestType = this.requestType === 'virtualscroll' ? this['empty'] : this.requestType;
13751
+ if (info.axis === 'Y') {
13752
+ this['restoreEdit']();
13753
+ }
13754
+ return;
13755
+ }
13742
13756
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
13743
13757
  const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
13744
13758
  this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
@@ -13765,7 +13779,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
13765
13779
  }
13766
13780
  appendContent(target, newChild, e) {
13767
13781
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
13768
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
13782
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
13769
13783
  if (getValue('isExpandCollapse', e)) {
13770
13784
  this.isRemoteExpand = true;
13771
13785
  }