Treeview selected Node

Discussion in 'ASP .Net Web Controls' started by Vikram, Aug 14, 2007.

  1. Vikram

    Vikram Guest

    Hi,

    I am using Asp.net 2.0 treeview control.Tree is having 2-3 level of
    hirearechy. I want to show current selected node as expanded when the page
    reloads or postback. How can I do that?

    Thanks
    Vikram, Aug 14, 2007
    #1
    1. Advertising

  2. Antoine Griffard, Aug 14, 2007
    #2
    1. Advertising

  3. Hi Vikram,

    try to set SelectAction in your nodes to Expand. Be aware of impact on
    TreeView functionality. Changing SelectAction can affect which events are
    fired when user click on node. For expand mode it will not fire
    SelectedNodeChanged any more.

    You can also handle SelectedNodeChanged, collapse all nodes and then expand
    only selected node if you want to.

    Regards,
    Ladislav

    "Vikram" wrote:

    > Hi,
    >
    > I am using Asp.net 2.0 treeview control.Tree is having 2-3 level of
    > hirearechy. I want to show current selected node as expanded when the page
    > reloads or postback. How can I do that?
    >
    > Thanks
    >
    Ladislav Mrnka, Aug 14, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wolf
    Replies:
    0
    Views:
    551
  2. Replies:
    0
    Views:
    1,448
  3. Tjerk Wolterink
    Replies:
    2
    Views:
    1,423
    Dimitre Novatchev
    Aug 24, 2006
  4. jiing
    Replies:
    0
    Views:
    2,321
    jiing
    Apr 27, 2007
  5. Homer J. Simpson

    TreeView node style - for an individual node

    Homer J. Simpson, Jul 23, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    8,890
    Homer J. Simpson
    Jul 24, 2007
Loading...

Share This Page