Version

toggle Method

Changes the Expanded state of the item to the opposite value from what it is currently. If the item is expanded, then it will be collapsed. If the item is collapsed, it will be expanded.
Syntax
ASP.NET Ajax Javascript (Specification) 
function toggle( 
   fireEvents : Boolean
) : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfExplorerBarItem.toggle(Boolean);

Parameters

fireEvents
If true, client side events will be fired for the expansion or collapse.
See Also