@syncfusion/ej2-treegrid 22.1.38 → 22.2.5

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.
@@ -13625,12 +13625,12 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13625
13625
  return getExpandStatus(_this.parent, e, parents);
13626
13626
  });
13627
13627
  this.visualData = visualData;
13628
+ pageingDetails.count = visualData.length;
13628
13629
  this.parent.grid.notify(dataListener, { data: visualData });
13629
13630
  var counts = { startIndex: -1, endIndex: -1, count: pageingDetails.count, requestType: pageingDetails.actionArgs.requestType };
13630
13631
  this.parent.grid.notify(indexModifier, counts);
13631
13632
  var startIndex = counts.startIndex;
13632
13633
  var endIndex = counts.endIndex;
13633
- pageingDetails.count = visualData.length;
13634
13634
  if (startIndex === -1 && endIndex === -1) {
13635
13635
  var query = new Query();
13636
13636
  var size = this.parent.grid.pageSettings.pageSize;
@@ -13649,7 +13649,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13649
13649
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
13650
13650
  this.parent.grid.notify(virtualActionArgs, { setTop: true });
13651
13651
  }
13652
- if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
13652
+ if ((requestType === 'save' && (pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt']) && (counts.count === this.prevendIndex + 1))) {
13653
13653
  startIndex = counts.startIndex + (counts.count - counts.endIndex);
13654
13654
  endIndex = counts.count;
13655
13655
  this.parent['isAddedFromGantt'] = false;