---
title: tree.init
name: event-tree-init
---

Called when the tree is initialized. This is particularly useful when the data is loaded from the server.

{% highlight js %}
$('#tree1').on(
    'tree.init',
    function() {
        // initializing code
    }
);
{% endhighlight %}
