@syncfusion/ej2-treegrid 19.4.47 → 19.4.48

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.
@@ -3297,7 +3297,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3297
3297
  * @returns {void}
3298
3298
  */
3299
3299
  TreeGrid.prototype.sortByColumn = function (columnName, direction, isMultiSort) {
3300
- this.sortModule.sortColumn(columnName, direction, isMultiSort);
3300
+ if (this.sortModule) {
3301
+ this.sortModule.sortColumn(columnName, direction, isMultiSort);
3302
+ }
3301
3303
  };
3302
3304
  /**
3303
3305
  * Clears all the sorted columns of the TreeGrid.
@@ -3317,7 +3319,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3317
3319
  * @hidden
3318
3320
  */
3319
3321
  TreeGrid.prototype.removeSortColumn = function (field) {
3320
- this.sortModule.removeSortColumn(field);
3322
+ if (this.sortModule) {
3323
+ this.sortModule.removeSortColumn(field);
3324
+ }
3321
3325
  };
3322
3326
  /**
3323
3327
  * Searches TreeGrid records using the given key.
@@ -3676,6 +3680,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3676
3680
  this.grid.isReact = true;
3677
3681
  this.grid.portals = [];
3678
3682
  }
3683
+ if (this.isVue) {
3684
+ this.grid.isVue = true;
3685
+ }
3679
3686
  createSpinner({ target: this.element }, this.createElement);
3680
3687
  this.log(['mapping_fields_missing']);
3681
3688
  this.renderModule = new Render(this);
@@ -5565,7 +5572,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5565
5572
  });
5566
5573
  }
5567
5574
  else if (isNullOrUndefined(record)) {
5568
- record = this.grid.getCurrentViewRecords()[row.rowIndex];
5575
+ if (this.detailTemplate) {
5576
+ record = this.grid.getCurrentViewRecords()[row.getAttribute('aria-rowindex')];
5577
+ }
5578
+ else {
5579
+ record = this.grid.getCurrentViewRecords()[row.rowIndex];
5580
+ }
5569
5581
  }
5570
5582
  return record;
5571
5583
  };
@@ -12139,7 +12151,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
12139
12151
  if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
12140
12152
  startIndex = 0;
12141
12153
  }
12142
- else {
12154
+ else if (!this.parent['isExpandAll']) {
12143
12155
  startIndex = this.prevstartIndex === -1 ? 0 : this.prevstartIndex;
12144
12156
  }
12145
12157
  }