Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TreeView] Load More Button Disappears on Collapse #4407

Open
georgi-sla opened this issue Sep 16, 2024 · 0 comments
Open

[TreeView] Load More Button Disappears on Collapse #4407

georgi-sla opened this issue Sep 16, 2024 · 0 comments

Comments

@georgi-sla
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant