Adding right-click ability and pop-up menu to a Treeview

This is a discussion on "Adding right-click ability and pop-up menu to a Treeview" within the ASP.NET Forum section. This forum, and the thread "Adding right-click ability and pop-up menu to a Treeview are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 4th, 2007, 08:47
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

  #2 (permalink)  
Old Jan 4th, 2007, 14:38
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: Adding right-click ability and pop-up menu to a Treeview

It's been a while since I've used trees - but the answer should lie in finding the non-server side element that you can add the javascript function to...

Could you put up your code for creating the treeview and the resulting HTML code for the page? Thanks.
Reply With Quote
Reply

Tags
menu, right click, treeview

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spry Menu Bar, Adding Submenu Border and Submenu semi-Transparent background ravennaweb Web Page Design 2 Sep 24th, 2007 14:27
How to find the table's row and column index at the click of menu. aamir1 JavaScript Forum 0 Aug 31st, 2007 11:10
A little help with flash right click menu dazzelworks Flash & Multimedia Forum 7 Oct 25th, 2006 14:12
Menu List. Select Multiple without Ctrl+Click? Andy K JavaScript Forum 7 May 10th, 2005 09:01


All times are GMT. The time now is 00:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43