Re: [ydn-javascript] Re: Adding Context menu to Tree chandhrudu, I'm sorry -- I may be misunderstanding your question.?I posted to this thread a response to zmische about the Implementation Gallery...I did not post about a code sample for integrating ContextMenu with TreeView.牋 However, to answer the latter question... <script>... (function()...{ var init =function() ...{ //build a TreeView instance with one node: var tree =new YAHOO.widget.TreeView("treediv"); var root = tree.getRoot(); var node1 =new YAHOO.widget.TextNode("Label for first node.", root); tree.draw(); //get the element that we want to attach //a context menu to; in this case, we'll //attach it to the element encompassing //the first (only) node in the tree: var myContextEl = node1.getEl(); //create a ContextMenu with the TreeView's //node as its trigger: var oContextMenu =new YAHOO.widget.ContextMenu("mycontextmenu", ...{ trigger: myContextEl } ); oContextMenu.addItem("cut"); oContextMenu.addItem("copy"); oContextMenu.addItem("paste"); oContextMenu.render(document.body); } YAHOO.util.Event.on(window, 'load', init); })(); </script> <body> <div id="treediv"></div> </body> </html> This will create a one-node TreeView instance which, when you right-click on the node, pops up a context menu. Regards, Eric