renderReturns: tree

Render data in the tree

Fires

dataBinding, dataBound

Parameters

NameTypeDescription
response {object} An object that contains the data that needs to be loaded in the tree.

Examples

sample

    
 <div id="tree"></div>
 <script>
     var tree, onSuccessFunc;
     onSuccessFunc = function (response) {
         //you can modify the response here if needed
         tree.render(response);
     };
     tree = $('#tree').tree({
         dataSource: { url: '/Locations/Get', success: onSuccessFunc }
     });
 </script>