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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vincent90152900
    New Member
    • Jul 2007
    • 50

    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
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

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

    Originally posted by vincent90152900
    How to get the position of a selected TreeNode of a TreeView?
    Any suggestion is welcome

    Comment

    • vincent90152900
      New Member
      • Jul 2007
      • 50

      #3
      Originally posted by shweta123
      Hi,

      What do you mean by position of node?
      You can get its index using treeview1.Nodes .IndexOf(treeno de)
      I use a ModalPopupExten der 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.

      Comment

      • girish1975
        New Member
        • Oct 2007
        • 2

        #4
        Originally posted by vincent90152900
        I use a ModalPopupExten der 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?

        Comment

        • vincent90152900
          New Member
          • Jul 2007
          • 50

          #5
          Originally posted by girish1975
          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.

          Comment

          • Shashi Sadasivan
            Recognized Expert Top Contributor
            • Aug 2007
            • 1435

            #6
            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.

            Comment

            Working...