Set the Tooltip of the Node with Javascript
Normally, you set the ToolTip property of the node server-side. Here is how you can set the tooltip at the client using JavaScript:
node.set_toolTip("my custom tooltip set with javascript");
node.get_textElement().title = "my custom tooltip set with javascript";
In the above code snippets node is a reference to a node of the TreeView.