load

Loads a given treeview node. Accepts a jQuery object, DOM Element or a path identifying the node, as well as an optional callback function to be executed when the loading is done.

This method will redraw all its children and reset their state to match the definition in the data source.

<ul id="treeview">
    <li>My Project
        <ul>
            <li id="someid">js</li>
            <li>css</li>
        </ul>
        <li>index.html<li>
        <li>upload.php<li>
    </li>
</ul>

<script type="text/javascript">
    jQuery(function ($) {
        var treeview = $("#treeview").shieldTreeView().swidget();

        // reload the first item
        treeview.load([0]);
    });
</script>