The TreeView's lazyLoadFunction property allows you to create nodes that are loaded only when the node is expanded.
This can be used to improve performance in cases where data is loaded asynchronously.
By default, lazy nodes load their data only once, when the node is expanded for the first time. This sample shows how you can change that behavior for selected nodes causing them to re-load their data whenever they are expanded. The sample does this by: