Working with treeview

Discussion in 'ASP .Net' started by Mark Goldin, Jan 20, 2004.

  1. Mark Goldin

    Mark Goldin Guest

    After treeview is loaded into the browser I'd like to select a particular
    node and expend it programmatically. How can I do that?

    Thanks
     
    Mark Goldin, Jan 20, 2004
    #1
    1. Advertising

  2. Mark Goldin

    Alvin Bruney Guest

    The easiest way is to set the expand property to true on the selected node.
    You would need to obtain or set the node first. And then set it's expand
    property to true. There are ample examples of this in
    microsoft.public*.webcontrols as a starting point.

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    http://tinyurl.com/3he3b
    "Mark Goldin" <> wrote in message
    news:...
    > After treeview is loaded into the browser I'd like to select a particular
    > node and expend it programmatically. How can I do that?
    >
    > Thanks
    >
    >
     
    Alvin Bruney, Jan 24, 2004
    #2
    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. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    24,490
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  2. abargaddon
    Replies:
    0
    Views:
    1,074
    abargaddon
    Jan 17, 2008
  3. Per Salmi

    TreeView not rendering nodes? Cacheing of a TreeView

    Per Salmi, Oct 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    482
    Steve Drake
    Oct 15, 2003
  4. Ionutz
    Replies:
    2
    Views:
    537
    Ionutz
    Oct 23, 2005
  5. stepkurt

    Microsoft Treeview vs System Treeview

    stepkurt, Aug 29, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    390
    Teemu Keiski
    Sep 2, 2007
Loading...

Share This Page