@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.
@@ -5565,7 +5565,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5565
5565
  record = this.grid.getCurrentViewRecords()[row.getAttribute('data-rowindex')];
5566
5566
  }
5567
5567
  else {
5568
- record = this.grid.getCurrentViewRecords()[row.rowIndex];
5568
+ record = this.grid.getCurrentViewRecords()[parseInt(row.getAttribute('data-rowindex'), 10)];
5569
5569
  }
5570
5570
  }
5571
5571
  return record;
@@ -6071,8 +6071,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6071
6071
  freezeRightRows = this.getFrozenRightRows().filter((r) => r.querySelector('.e-gridrowindex' + record.index + 'level' + (record.level + 1)));
6072
6072
  }
6073
6073
  let gridRowsObject = this.grid.getRowsObject();
6074
- if (gridRowsObject[record.index].visible !== false) {
6075
- gridRowsObject[record.index].visible = true;
6074
+ if (!isNullOrUndefined(gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible) && gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible !== false) {
6075
+ gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible = true;
6076
6076
  }
6077
6077
  const detailrows = gridRows.filter((r) => r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1)));
6078
6078
  for (let i = 0; i < rows.length; i++) {
@@ -6081,10 +6081,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6081
6081
  }
6082
6082
  if (!isNullOrUndefined(rows[i]) && !this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
6083
6083
  gridRowsObject[rows[i].rowIndex].visible = displayAction != 'none' ? true : false;
6084
- if ("parentItem" in record) {
6085
- if (gridRows[record.parentItem.index].getElementsByClassName('e-treegridcollapse').length) {
6086
- gridRowsObject[record.index].visible = false;
6087
- }
6084
+ const parentRecord = getValue('uniqueIDCollection.' + record.parentUniqueID, this);
6085
+ if (!isNullOrUndefined(parentRecord) && gridRows[this.getCurrentViewRecords().indexOf(parentRecord)].getElementsByClassName('e-treegridcollapse').length) {
6086
+ gridRowsObject[this.getCurrentViewRecords().indexOf(record)].visible = false;
6088
6087
  }
6089
6088
  }
6090
6089
  if (!isNullOrUndefined(movableRows)) {