reloadReturns: jQuery object

Reload the tree.

Parameters

NameTypeDescription
params {object} Params that needs to be send to the server. Only in use for remote data sources.

Examples

Method Sample

    
 <button onclick="tree.reload()" class="gj-button-md">Click to load</button>
 <br/><br/>
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         dataSource: '/Locations/Get',
         autoLoad: false
     });
 </script>

  

Search

    
 <input type="text" id="query" /> <button onclick="Search()">Search</button>
 <br/><br/>
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         dataSource: '/Locations/Get'
     });
     function Search() {
         tree.reload({ query: $('#query').val() });
     }
 </script>