Faced a problem, I can not add a new element of the tree jstree. Tell experts how to add new parent node correctly using a button handler. Here is an example:
$("#CreateButton").button().click(function (){ var ref = $("treeview").jstree("create_node", null, null, "last", function (node) { alert(ref); this.edit(node); }); });