@syncfusion/ej2-treegrid 20.4.49 → 20.4.54

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.
@@ -1862,7 +1862,7 @@ var Render = /** @__PURE__ @class */ (function () {
1862
1862
  }
1863
1863
  else {
1864
1864
  var str = 'isStringTemplate';
1865
- var result = args.column["" + templateFn](extend$1({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent["" + str]);
1865
+ var result = args.column["" + templateFn](extend$1({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent["" + str], undefined, undefined, this.parent['root']);
1866
1866
  appendChildren(cellElement, result);
1867
1867
  }
1868
1868
  delete args.column.template;
@@ -2264,13 +2264,13 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2264
2264
  if (this.parent.enableVirtualization && rowDetails.action === 'remoteExpand') {
2265
2265
  qry.take(this.parent.pageSettings.pageSize);
2266
2266
  var expandDetail = [];
2267
- expandDetail.push('ExpandingAction', rowDetails.record[this.parent.idMapping]);
2267
+ expandDetail.push('ExpandingAction', parseInt(rowDetails.record[this.parent.idMapping], 10).toString());
2268
2268
  qry.expand(expandDetail);
2269
2269
  }
2270
2270
  else if (this.parent.enableVirtualization && rowDetails.action === 'collapse') {
2271
2271
  qry.take(this.parent.grid.pageSettings.pageSize);
2272
2272
  var expandDetail = [];
2273
- expandDetail.push('CollapsingAction', rowDetails.record[this.parent.idMapping]);
2273
+ expandDetail.push('CollapsingAction', parseInt(rowDetails.record[this.parent.idMapping], 10).toString());
2274
2274
  qry.expand(expandDetail);
2275
2275
  }
2276
2276
  qry.where(this.parent.parentIdMapping, 'equal', rowDetails.record[this.parent.idMapping]);
@@ -5734,7 +5734,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5734
5734
  if (this.grid.columns.length !== this.columnModel.length) {
5735
5735
  this.stackedHeader = true;
5736
5736
  }
5737
- if (this.stackedHeader && this.enablePersistence && this.allowResizing) {
5737
+ if (this.stackedHeader && this.allowResizing) {
5738
5738
  for (var i = 0; i < this.columns.length; i++) {
5739
5739
  if (!isNullOrUndefined(this.columns[parseInt(i.toString(), 10)].columns)) {
5740
5740
  for (var j = 0; j < this.columns[parseInt(i.toString(), 10)].columns.length; j++) {
@@ -5743,6 +5743,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5743
5743
  stackedColumn.width = currentColumn.width;
5744
5744
  }
5745
5745
  }
5746
+ else if (!isNullOrUndefined(this.columns[parseInt(i.toString(), 10)].field)) {
5747
+ var currentColumn = this.grid.getColumnByField(this.columns[parseInt(i.toString(), 10)].field);
5748
+ this.columns[parseInt(i.toString(), 10)].width = currentColumn.width;
5749
+ }
5746
5750
  }
5747
5751
  }
5748
5752
  if (!this.stackedHeader) {
@@ -10798,7 +10802,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
10798
10802
  this.batchAddedRecords = this.batchRecords = this.batchAddRowRecord = this.batchDeletedRecords = this.currentViewRecords = [];
10799
10803
  };
10800
10804
  BatchEdit.prototype.cellSaved = function (args) {
10801
- var actualCellIndex = args.cell.cellIndex;
10805
+ var actualCellIndex = args.column.index;
10802
10806
  var frozenCols = this.parent.frozenColumns || this.parent.getFrozenColumns();
10803
10807
  if (frozenCols && args.columnObject.index > frozenCols) {
10804
10808
  actualCellIndex = actualCellIndex + frozenCols;
@@ -10809,13 +10813,13 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
10809
10813
  var colCount = this.parent.getFrozenLeftColumnsCount() + actualCellIndex;
10810
10814
  if (colCount === this.parent.treeColumnIndex) {
10811
10815
  this.parent.renderModule.cellRender({ data: args.rowData, cell: args.cell,
10812
- column: this.parent.grid.getColumnByIndex(args.cell.cellIndex)
10816
+ column: this.parent.grid.getColumnByIndex(args.column.index)
10813
10817
  });
10814
10818
  }
10815
10819
  }
10816
10820
  else if (actualCellIndex === this.parent.treeColumnIndex) {
10817
10821
  this.parent.renderModule.cellRender({ data: args.rowData, cell: args.cell,
10818
- column: this.parent.grid.getColumnByIndex(args.cell.cellIndex)
10822
+ column: this.parent.grid.getColumnByIndex(args.column.index)
10819
10823
  });
10820
10824
  }
10821
10825
  if (this.isAdd && this.parent.editSettings.mode === 'Batch' && this.parent.editSettings.newRowPosition !== 'Bottom') {
@@ -13632,10 +13636,6 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
13632
13636
  getValue('addRenderer', renderer)
13633
13637
  .apply(renderer, [RenderType.Content, new VirtualTreeFreezeRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13634
13638
  }
13635
- else {
13636
- getValue('addRenderer', renderer)
13637
- .apply(renderer, [RenderType.Content, new FreezeContentRender(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13638
- }
13639
13639
  }
13640
13640
  if (this.parent.getFrozenLeftColumnsCount() || this.parent.getFrozenRightColumnsCount()) {
13641
13641
  getValue('addRenderer', renderer)