Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Can we add Loading Gif or Message when Loading the list view or expanding the Tree node? #37

Open
praveenlobo7 opened this issue Jan 12, 2017 · 2 comments

Comments

@praveenlobo7
Copy link

Can we add Loading Gif or Message when Loading the list view or expanding the Tree node?

@ygoe
Copy link
Owner

ygoe commented Jan 29, 2017

Yes, we can! :-) This is the basic lazy loading pattern. You first add a dummy child under each tree node you want to expand. When the node is expanded (bind that property to your view model and react on it changed), that node becomes visible. This is your loading message. Then you start loading the children asynchronously, and when that's done, you replace the node children with what you've found. The actual children them become visible. Of course you also need to remove the dummy loading node first.

@praveenlobo7
Copy link
Author

Thank you for information.
Is there any event that can be used when we expand the node?

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

No branches or pull requests

2 participants