View Single Post
  #1 (permalink)  
Old Jan 4th, 2007, 08:47
utkuozan utkuozan is offline
New Member
Join Date: Jan 2007
Location: Izmir
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Adding right-click ability and pop-up menu to a Treeview

I have a treeview created as an ASP object on my form, populated with many items hierarchically. I want to add a pop-up menu which will appear when a node is right-clicked and show related operations that could be done on this node.

Creating TreeView is no problem. I can also create a pop-up menu with javascript and styles. But the thing is that TreeView does not have onClick event. Most probable answer is onSelectedNodeChanged event bu when I right-click a node on TreeView the javascript code about the pop-up menu fires first and besides the right clik event -of course- does not fire the onSelectedNodeChanged event.

On such conditions I first have to select a node and then right click it.
How can I possibly overcome this problem? The problem is basically that I want to change the SelectedNode while ı am right-clicking and then run a javascript to show a pop-up menu.

Regards.
Reply With Quote