View Full Version : treeview and context menu
kyriakos
16 Jan 2007, 3:43 PM
how can i setup a context menu to appear when the user right clicks on an entry in the treeview?
tryanDLS
16 Jan 2007, 3:56 PM
Did you try adding a listener to the 'contextmenu' event?
The Tree code is pre-alpha undocumented code. You will have to dig into the code to figure out what's going on past the blog examples. There have been several posts asking questions about how to use it - take a look at those to see if they provide any help.
djeff
16 Jan 2007, 4:45 PM
There is a problem in the tree code that says 'contentmenu' instead of 'contextmenu'. Search in the debug code and change it. I was having troubles with contextmenus in my tree for hours until I discovered this. Once I changed it and added a listener, it worked.
There is a problem in the tree code that says 'contentmenu' instead of 'contextmenu'. Search in the debug code and change it. I was having troubles with contextmenus in my tree for hours until I discovered this. Once I changed it and added a listener, it worked.
Thank you very much, I spent about 2 days searching for contextmenu implementation. I thought that "contentmenu" is some new special feature of TreePanel:).
thameema
29 Jan 2007, 2:15 PM
I posted the working example under
http://www.yui-ext.com/forum/viewtopic.php?p=10134#10134
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.