kendo-angular
kendo-angular copied to clipboard
[TreeView] Load More Button Disappears on Collapse
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
- Create a TreeView component.
- Bind remote data to the TreeView.
- Enable the Load More button.
- Expand a specific parent node.
- Load all children nodes.
- Collapse the parent node.
- 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