Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. automatically select tree node

automatically select tree node

Scheduled Pinned Locked Moved ASP.NET
sysadmindata-structuresquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NikoTanghe
    wrote on last edited by
    #1

    I want to automatically select a certain tree node when the tree control is rendered. Do I have to inject some javascripting code? is it possible from the server-side? Thank you in advance... Niko

    << Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>

    modified on Thursday, September 18, 2008 10:15 AM

    E 1 Reply Last reply
    0
    • N NikoTanghe

      I want to automatically select a certain tree node when the tree control is rendered. Do I have to inject some javascripting code? is it possible from the server-side? Thank you in advance... Niko

      << Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>

      modified on Thursday, September 18, 2008 10:15 AM

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Maybe this will work: NewNode.SelectAction = TreeNodeSelectAction.Expand;

      The answers posted by me are suggestions only and cannot be used in anyway against me.

      N 1 Reply Last reply
      0
      • E eyeseetee

        Maybe this will work: NewNode.SelectAction = TreeNodeSelectAction.Expand;

        The answers posted by me are suggestions only and cannot be used in anyway against me.

        N Offline
        N Offline
        NikoTanghe
        wrote on last edited by
        #3

        I want the tree not to be selected, not expanded. so when the tree is displayed, a postback is generated, as if the user clicked on the node itself to select it.

        << Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups