@refinitiv-ui/efx-grid 6.0.35 → 6.0.36

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.
@@ -326,6 +326,7 @@ var Grid = function(placeholder, config) {
326
326
  t._dc = new DataCache();
327
327
  t._dc.listen("dataChanged", t._onDataChanged);
328
328
  t._dc.listen("dataComposed", t._onDataComposed);
329
+ t._dc.addStaticFields([ROW_DEF, SUB_ID]); // Static fields are deprecated, set fields to be ignore during clone in DataCache
329
330
 
330
331
  t._dt = new DataTable();
331
332
  t._dt.setSortingLogic(/** @type{Function} */(t._mainSorter));
@@ -1526,8 +1527,11 @@ Grid.prototype.replaceColumn = function (columnOption, colRef) {
1526
1527
  if(colDef.getChildren()) { // Parent time series field doesn't provide hidden property
1527
1528
  colConfig["hidden"] = false;
1528
1529
  }
1530
+
1531
+ this._grid.startBatch("reset");
1529
1532
  this.insertColumn(colConfig, colIndex);
1530
1533
  this.removeColumn(colIndex + 1); // remove existing column after insert
1534
+ this._grid.stopBatch("reset");
1531
1535
  };
1532
1536
 
1533
1537
  /** to update column name when field info is loaded
@@ -1788,11 +1792,6 @@ Grid.prototype._onColumnAdded = function(e) {
1788
1792
  this._grid.enableColumnClass(idx, classes[i]);
1789
1793
  }
1790
1794
  var colField = colDef.getField();
1791
- if (!colDef.isRealTimeField()) {
1792
- if(this._dc) {
1793
- this._dc.addStaticFields([colField]);
1794
- }
1795
- }
1796
1795
  this._grid.setDataColumnName(idx, ROW_DEF); // This make ColumnDefinition renderer work
1797
1796
  var fields = colDef.getAllFields();
1798
1797
  var referrer = colDef.getId();
@@ -3,6 +3,7 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
3
3
  import { Conflator } from "../../tr-grid-util/es6/Conflator.js";
4
4
  import { Icon } from "../../tr-grid-util/es6/Icon.js";
5
5
  import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
6
+ import { GroupDefinitions } from "../../tr-grid-util/es6/GroupDefinitions.js";
6
7
  import { Dom } from "../../tr-grid-util/es6/Dom.js";
7
8
  import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
8
9
  import { preventDefault } from "../../tr-grid-util/es6/EventDispatcher.js";