Treeview selectedIndexNode

Discussion in 'ASP .Net Web Controls' started by Jake, Jun 21, 2004.

  1. Jake

    Jake Guest

    Hi all,

    Im trying to set the selected node in a treeview to a
    specific node with javascript to prevent the server trip.

    I have tried both the following but nothing seems to
    happen:
    trvHome.selectedNodeIndex = 1
    trvHome.selectedIndex = 1

    Any assistance would be great.

    Thanks in advance

    Jake
     
    Jake, Jun 21, 2004
    #1
    1. Advertising

  2. TreeView doesn't use int index, but string index with complete parent list
    "IDs"... Like 1.1.4. or something. Check out TreeView help and maybe even
    treeview.js file that handles client side functionality

    --
    RobertK
    { Clever? No just smart. }

    "Jake" <> wrote in message
    news:259401c45748$d01a68b0$...
    > Hi all,
    >
    > Im trying to set the selected node in a treeview to a
    > specific node with javascript to prevent the server trip.
    >
    > I have tried both the following but nothing seems to
    > happen:
    > trvHome.selectedNodeIndex = 1
    > trvHome.selectedIndex = 1
    >
    > Any assistance would be great.
    >
    > Thanks in advance
    >
    > Jake
    >
     
    Robert Koritnik, Jun 21, 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,670
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  2. abargaddon
    Replies:
    0
    Views:
    1,104
    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:
    520
    Steve Drake
    Oct 15, 2003
  4. Ionutz
    Replies:
    2
    Views:
    571
    Ionutz
    Oct 23, 2005
  5. stepkurt

    Microsoft Treeview vs System Treeview

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

Share This Page