Has I still don't know how to add a expand icon on a treeview, I use the Onclick event to check if I need to load the children node of a treeview...
if (parentId != 0) {
parentNode = tree.findNodeByValue(parentId);
}
... Code to Add Nodes
tree.commitChanges();
if (parentId != 0) {
parentNode.set_expanded();
}
Result is great.... The node expands... But it collapses back !