# C1.Web.Mvc.TreeView.LazyLoadFunction

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_TreeView_LazyLoadFunction_" data-uid="C1.Web.Mvc.TreeView.LazyLoadFunction*">LazyLoadFunction Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_TreeView_LazyLoadFunction_" data-uid="C1.Web.Mvc.TreeView.LazyLoadFunction*"></a>
<h4 id="C1_Web_Mvc_TreeView_LazyLoadFunction" data-uid="C1.Web.Mvc.TreeView.LazyLoadFunction">LazyLoadFunction</h4>
<div class="markdown level1 summary"><p>Gets or sets a client function that loads child nodes on demand.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[JsonConverter(typeof(FunctionConverter))]
public string LazyLoadFunction { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;JsonConverter(GetType(FunctionConverter))&gt;
Public Property LazyLoadFunction As String</code></pre>
</div>
<h5 id="C1_Web_Mvc_TreeView_LazyLoadFunction_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>It takes two parameters: the node being and a callback to be invoked when the data becomes available. The callback function tells the <a class="xref" href="C1.Web.Mvc.TreeView.html">TreeView</a> that the node loading process has been completed. It should always be called, even if there are errors when loading the data.</p>
</div>
</div>
