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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to open only 1 node of treeview and expand the node by clicking on the node labels along with the exsisting method.??

How to open only 1 node of treeview and expand the node by clicking on the node labels along with the exsisting method.??

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiohelptutorial
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.
  • B Offline
    B Offline
    biswa47
    wrote on last edited by
    #1

    i have a treeview control in which the data is populated from the databse in 3 levels. the structure is like this. Lable1 : : sublabel1 : : child1 child2 Lable2 : : sublabel2 : : child1 child2 Lable3 : : sublabel3 : : child1 child2 . I am able 2 populte data from the databse but my problem is that i want to open only one node at a time.it meanms if initally "sublabel1"(of label1) node is opend and after dat i have clicke don label3 node then the previous node must be close before it open the new node means 1st it close the "sublabel1"(of label1) then open label3 and secondly the node is being expaned only when i clicked on the "+"sign which is connected to the left side of each node but when i clicked on the lable1 then the page is postback but return to the same page again. but i need to open the subnode(if exsist) when i clicked on the any node. here i am developing my application with visual studio -2005. n my applcation is developed with asp.net along with c#.net can yu tell me what i wil do or what wil b the code for this..

    A 1 Reply Last reply
    0
    • B biswa47

      i have a treeview control in which the data is populated from the databse in 3 levels. the structure is like this. Lable1 : : sublabel1 : : child1 child2 Lable2 : : sublabel2 : : child1 child2 Lable3 : : sublabel3 : : child1 child2 . I am able 2 populte data from the databse but my problem is that i want to open only one node at a time.it meanms if initally "sublabel1"(of label1) node is opend and after dat i have clicke don label3 node then the previous node must be close before it open the new node means 1st it close the "sublabel1"(of label1) then open label3 and secondly the node is being expaned only when i clicked on the "+"sign which is connected to the left side of each node but when i clicked on the lable1 then the page is postback but return to the same page again. but i need to open the subnode(if exsist) when i clicked on the any node. here i am developing my application with visual studio -2005. n my applcation is developed with asp.net along with c#.net can yu tell me what i wil do or what wil b the code for this..

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Try with Div Tag

      Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

      B 1 Reply Last reply
      0
      • A Abhijit Jana

        Try with Div Tag

        Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

        B Offline
        B Offline
        biswa47
        wrote on last edited by
        #3

        i am not geeting u.what will i do with u "Div" tag. can just briefly expalin or give me d code.

        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