TabView
OnClientNodeExpand
OnClientNodeExpand gets called when a node is expanded. It recieves as parameters the instance of the tree view, and an object containing the yui node that's expanding. You can cancel the node's expand by setting the cancel property of the arguments object to false.
function ExpandNode(tree, args) {
if (args.node.data.indexOf("Secret") > -1) {
args.cancel = !confirm("Are you sure?");
}
}
OnClientNodeCollapse
OnClientNodeCollapse gets called when a node is collapsed. It's similar to the OnClientNodeExpand handler
OnClientNodeClick
OnClientNodeClick gets called when a click on a node, leaf or not, occurs. If AutoPostback is set to true, after the execution of the handler, a postback occurs. You can prevent that by setting the cancel property of the second object passed to false.
function ClickNode(tree, args) {
alert(args.node.label);
}