<h1>
    Re-loading Lazy-Loaded Nodes
</h1>
<p>
    The TreeView's <b>lazyLoadFunction</b> property allows you to
    create nodes that are loaded only when the node is expanded.
</p>
<p>
    This can be used to improve performance in cases where data is
    loaded asynchronously.
</p>
<p>
    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:
</p>
<ol>
    <li>
        Clearing the node's lazy-loaded data when the node is
        collapsed, and
    </li>
    <li>
        Re-binding the tree to remove the old nodes.
    </li>
</ol>

@Html.C1().TreeView().Id("theTree").DisplayMemberPath("header").ChildItemsPath("items").IsContentHtml(true).AllowDragging(true).ExpandOnClick(false).AutoCollapse(false)