473,388 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to get the position of a selected TreeNode of a TreeView?

How to get the position of a selected TreeNode of a TreeView?
Any suggestion is welcome
Oct 30 '07 #1
5 6575
shweta123
692 Expert 512MB
Hi,

What do you mean by position of node?
You can get its index using treeview1.Nodes.IndexOf(treenode)

How to get the position of a selected TreeNode of a TreeView?
Any suggestion is welcome
Oct 30 '07 #2
Hi,

What do you mean by position of node?
You can get its index using treeview1.Nodes.IndexOf(treenode)
I use a ModalPopupExtender to pop up a message, when user clicks a TreeNode of a TreeView and I would like the message pop up beside the selected TreeNode. So, I need to know the position of the selected TreeNode. Any suggestion is welcome.
Oct 30 '07 #3
I use a ModalPopupExtender to pop up a message, when user clicks a TreeNode of a TreeView and I would like the message pop up beside the selected TreeNode. So, I need to know the position of the selected TreeNode. Any suggestion is welcome.
u want show javascript popup?
Oct 30 '07 #4
u want show javascript popup?
No, I want to pop up different text base on the selected TreeNode of the TreeView.
Many thanks for your replying.
Oct 31 '07 #5
Shashi Sadasivan
1,435 Expert 1GB
Have you tried the code provided by shweta123
You can put a label into the modal popup window and set its text to the code provided.
Oct 31 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mike | last post by:
Hello All, I wrote a function that will create a file system directory for my web application and display it in the IE Treeview control. Everything wrotes great! What I'm having trouble with is...
6
by: meh | last post by:
I can figure out the total number of nodes in a given tree but what I'd like to know is what is the Selected Nodes relationship to the entire tree i.e This is node n out of nnn nodes. In most of...
1
by: James L | last post by:
Hi, I have a treeview that has to be refreshed due to data changes. Is it possible to select the last node that they were viewing when the tree view was been populated once again? I have...
1
by: jesper_lofgren | last post by:
Hello, Iam using Treeview control in asp.net 2.0. But have a problem. I use NavigateUrl BUT then viewstate is lost when clicked on a link i the menu. And the selected node is lost. Then i...
2
by: Antonio | last post by:
Hi, I would like to have my TreeNode to call window.close(); without posting back, how can I do that? At the same time, I prefer to have a SelectAction property that allows my TreeNode to appear...
9
by: vincent90152900 | last post by:
How to pop up different text base on the selected TreeNode? I want to pop up different Text base on the selected TreeNode of the TreeView component. So, I create a TreeView and a ModalPopupExtender....
1
by: vincent90152900 | last post by:
I want to know the position of the TreeNode. Does anyone know how to do that? Following is my code. <asp:TreeView ID="TreeView1" runat="server"> <Nodes> ...
1
by: Falcula | last post by:
Hello, I have a treeview control, when i select a item i navigate to url. But selected node is lost, it reset itself, loosing state. I post my code here. Thanks in advance. <script...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.