@smartbit4all/ng-client 3.3.67 → 3.3.69

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.
@@ -9736,6 +9736,7 @@ class SmartGridComponent {
9736
9736
  }
9737
9737
  if (gridModel?.paginator !== undefined) {
9738
9738
  this.smartGrid.paginator = gridModel.paginator;
9739
+ this.service.paginator = this.smartGrid.paginator;
9739
9740
  }
9740
9741
  }
9741
9742
  else {
@@ -9755,7 +9756,12 @@ class SmartGridComponent {
9755
9756
  }
9756
9757
  this.isBlocked = false;
9757
9758
  }
9759
+ clearTable() {
9760
+ this.vcRefTable?.clear();
9761
+ this.componentRefTable = undefined;
9762
+ }
9758
9763
  async renderTable() {
9764
+ this.clearTree();
9759
9765
  let tableRow = this.smartGrid.gridModel.page.rows.map((item) => {
9760
9766
  return item;
9761
9767
  });
@@ -9926,9 +9932,14 @@ class SmartGridComponent {
9926
9932
  const selectionMode = this.service.gridModel.view?.descriptor?.selectionMode;
9927
9933
  return selectionMode === GridSelectionMode.MULTIPLE;
9928
9934
  }
9935
+ clearTree() {
9936
+ this.treeControl = undefined;
9937
+ this.treeDataSource = undefined;
9938
+ this.treeFlattener = undefined;
9939
+ this.treeChecklistSelection = undefined;
9940
+ }
9929
9941
  renderTree() {
9930
- this.vcRefTable?.clear();
9931
- this.componentRefTable = undefined;
9942
+ this.clearTable();
9932
9943
  if (!this.treeDataSource) {
9933
9944
  this.treeFlattener = new MatTreeFlattener(this.transformer, this.getLevel, this.isExpandable, this.getChildren);
9934
9945
  this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable);