@syncfusion/ej2-treegrid 23.2.6 → 23.2.7

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.
@@ -6762,11 +6762,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6762
6762
  treeColumnRowTemplate() {
6763
6763
  let rows = this.getContentTable().rows;
6764
6764
  rows = [].slice.call(rows);
6765
+ let rowsObject = this.grid.getRowsObject();
6765
6766
  for (let i = 0; i < rows.length; i++) {
6766
6767
  const rcell = this.grid.getContentTable().rows[parseInt(i.toString(), 10)]
6767
6768
  .cells[this.treeColumnIndex];
6768
6769
  const row = rows[parseInt(i.toString(), 10)];
6769
- const rowData = this.grid.getRowsObject()[parseInt(i.toString(), 10)].data;
6770
+ const rowData = rowsObject.length != 0 ? rowsObject[parseInt(i.toString(), 10)].data : new Object();
6770
6771
  const arg = { data: rowData, row: row, cell: rcell, column: this.getColumns()[this.treeColumnIndex] };
6771
6772
  this.renderModule.cellRender(arg);
6772
6773
  }