@syncfusion/ej2-treegrid 34.1.30 → 34.1.32

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.
@@ -5854,10 +5854,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5854
5854
  * Called internally if any of the property value changed.
5855
5855
  *
5856
5856
  * @param {TreeGridModel} newProp - properties details which has to be modified
5857
+ * @param {TreeGridModel} oldProp - properties details which previously existed
5857
5858
  * @hidden
5858
5859
  * @returns {void}
5859
5860
  */
5860
- onPropertyChanged(newProp) {
5861
+ onPropertyChanged(newProp, oldProp) {
5861
5862
  const properties = Object.keys(newProp);
5862
5863
  let requireRefresh = false;
5863
5864
  let refreshComponent = false;
@@ -5914,6 +5915,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5914
5915
  if (!this.initialRender) {
5915
5916
  this.grid.filterSettings = getActualProperties(this.filterSettings);
5916
5917
  }
5918
+ if (newProp.filterSettings && !isNullOrUndefined(newProp.filterSettings.hierarchyMode)
5919
+ && oldProp.filterSettings && !isNullOrUndefined(oldProp.filterSettings.hierarchyMode)
5920
+ && newProp.filterSettings.hierarchyMode !== oldProp.filterSettings.hierarchyMode) {
5921
+ this.refresh();
5922
+ }
5917
5923
  break;
5918
5924
  case 'showColumnMenu':
5919
5925
  this.grid.showColumnMenu = this.showColumnMenu;
@@ -16582,6 +16588,7 @@ class InfiniteScroll {
16582
16588
  const index = getRowIndexFromElement(rows[rows.length - 1]);
16583
16589
  const previousPage = this.parent.grid.pageSettings.currentPage;
16584
16590
  const nextPage = Math.ceil(index / this.parent.grid.pageSettings.pageSize) + 1;
16591
+ const totalVisibleCount = this.visualData ? this.visualData.length : 0;
16585
16592
  if ((previousPage >= this.maxPage) || (nextPage > this.maxPage)) {
16586
16593
  return;
16587
16594
  }