@syncfusion/ej2-treegrid 34.1.31 → 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;
@@ -5913,6 +5914,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5913
5914
  case 'filterSettings':
5914
5915
  if (!this.initialRender) {
5915
5916
  this.grid.filterSettings = getActualProperties(this.filterSettings);
5917
+ }
5918
+ if (newProp.filterSettings && !isNullOrUndefined(newProp.filterSettings.hierarchyMode)
5919
+ && oldProp.filterSettings && !isNullOrUndefined(oldProp.filterSettings.hierarchyMode)
5920
+ && newProp.filterSettings.hierarchyMode !== oldProp.filterSettings.hierarchyMode) {
5916
5921
  this.refresh();
5917
5922
  }
5918
5923
  break;
@@ -16583,6 +16588,7 @@ class InfiniteScroll {
16583
16588
  const index = getRowIndexFromElement(rows[rows.length - 1]);
16584
16589
  const previousPage = this.parent.grid.pageSettings.currentPage;
16585
16590
  const nextPage = Math.ceil(index / this.parent.grid.pageSettings.pageSize) + 1;
16591
+ const totalVisibleCount = this.visualData ? this.visualData.length : 0;
16586
16592
  if ((previousPage >= this.maxPage) || (nextPage > this.maxPage)) {
16587
16593
  return;
16588
16594
  }