MultiSelectTreeView icon indicating copy to clipboard operation
MultiSelectTreeView copied to clipboard

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

Open praveenlobo7 opened this issue 8 years ago • 2 comments

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

praveenlobo7 avatar Jan 12 '17 03:01 praveenlobo7

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.

ygoe avatar Jan 29 '17 13:01 ygoe

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

praveenlobo7 avatar Jan 30 '17 03:01 praveenlobo7