@syncfusion/ej2-treegrid 20.3.60 → 20.3.61

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.
@@ -5826,7 +5826,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5826
5826
  record = this.grid.getCurrentViewRecords()[row.getAttribute('data-rowindex')];
5827
5827
  }
5828
5828
  else {
5829
- record = this.grid.getCurrentViewRecords()[row.rowIndex];
5829
+ record = this.grid.getCurrentViewRecords()[parseInt(row.getAttribute('data-rowindex'), 10)];
5830
5830
  }
5831
5831
  }
5832
5832
  return record;
@@ -6350,8 +6350,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6350
6350
  });
6351
6351
  }
6352
6352
  var gridRowsObject = this.grid.getRowsObject();
6353
- if (gridRowsObject[record.index].visible !== false) {
6354
- gridRowsObject[record.index].visible = true;
6353
+ if (!isNullOrUndefined(gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible) && gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible !== false) {
6354
+ gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible = true;
6355
6355
  }
6356
6356
  var detailrows = gridRows.filter(function (r) {
6357
6357
  return r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1));
@@ -6362,10 +6362,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6362
6362
  }
6363
6363
  if (!isNullOrUndefined(rows[i]) && !this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
6364
6364
  gridRowsObject[rows[i].rowIndex].visible = displayAction != 'none' ? true : false;
6365
- if ("parentItem" in record) {
6366
- if (gridRows[record.parentItem.index].getElementsByClassName('e-treegridcollapse').length) {
6367
- gridRowsObject[record.index].visible = false;
6368
- }
6365
+ var parentRecord = getValue('uniqueIDCollection.' + record.parentUniqueID, this);
6366
+ if (!isNullOrUndefined(parentRecord) && gridRows[this.getCurrentViewRecords().indexOf(parentRecord)].getElementsByClassName('e-treegridcollapse').length) {
6367
+ gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible = false;
6369
6368
  }
6370
6369
  }
6371
6370
  if (!isNullOrUndefined(movableRows)) {