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. Asp.net Treeview Control

Asp.net Treeview Control

Scheduled Pinned Locked Moved ASP.NET
csharpjavaasp-netdata-structurestools
4 Posts 4 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.
  • M Offline
    M Offline
    Member 9947782
    wrote on last edited by
    #1

    Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap

    L J A 3 Replies Last reply
    0
    • M Member 9947782

      Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Take a look at the Web Development articles[^] for sample code, and "how to" articles.

      Use the best guess

      1 Reply Last reply
      0
      • M Member 9947782

        Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        Easier said than done. You really should just drop one down on your webform and play around with it first, and work on the CSS you need to style it, then load it up with your data, and write code for expand and collapse. The treeview is pretty complicated, and doesn't really work very well across all browsers, so it requires some browser detection and some tweaking for each node and child nodes. So for IE, the text on the nodes read clear, but on firefox, the text is very fine, but perhaps it depends on your monitor or video card. As for right clicks, I tried that and decided thar the work required to enable right clicks outweighed the use of them. Then you have to determine which node or child node was selected, and what the object type is to take action to. You really need to write your own code, or google for sample code instead of asking us to google for you. I use it to show files in a folder by file type, and place the appropriate icon next to the file type. So I do a folder read, and create nodes in code without binding. Binding Binding Data With ‘TreeView’ Control Asp.net 2.0[^] Right Clicks http://generally.wordpress.com/2007/11/06/right-click-on-treeview-get-the-node-clicked-at/[^]

        1 Reply Last reply
        0
        • M Member 9947782

          Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap

          A Offline
          A Offline
          AContractor
          wrote on last edited by
          #4

          Have you checked MSDN? They have sample code to look through. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx[^]

          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