kendo-angular icon indicating copy to clipboard operation
kendo-angular copied to clipboard

[TreeView] Load More Button Disappears on Collapse

Open georgi-sla opened this issue 5 months ago • 0 comments

Description

Currently, when the Load More functionality of the TreeView component is enabled, and the user renders all children nodes of a particular parent node, the Load More button disappears (as expected). However, when the user collapses this node and then expands it again, the button disappears, and either all children nodes are rendered (when stored in a cache), or just a specific number of nodes (equal to the value of the pageSize property) are displayed without the button to load the rest.

Steps To Reproduce

  1. Create a TreeView component.
  2. Bind remote data to the TreeView.
  3. Enable the Load More button.
  4. Expand a specific parent node.
  5. Load all children nodes.
  6. Collapse the parent node.
  7. Expand the parent node.

Please, check out the following StackBlitz demo: https://stackblitz.com/edit/angular-t1rtyf

Screenshots or video

No response

Actual Behavior

The Load More button disappears when the user expands a parent node, loads all its children, collapses it, and then re-expands it. In case cache is being used, then all children nodes are rendered on the second expand.

Expected Behavior

The Load More button should be rendered on each consecutive expand of a parent node.

Browser

All

Browser version

latest

OS type

No response

OS version

No response

Last working version of the Kendo UI for Angular package (if regression).

No response

georgi-sla avatar Sep 16 '24 12:09 georgi-sla