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. adding treeview on Panel control

adding treeview on Panel control

Scheduled Pinned Locked Moved Web Development
2 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.
  • E Offline
    E Offline
    EEmaan
    wrote on last edited by
    #1

    Hi! actually i added my tree view on scroll and i want that when nodes of tree are expanded and tree view's size becomes greater than panel's size then automatically scroll bars should be applied on it. I have done it by writing "overflow:scroll" in style property of panel.Now when size exceeds auto scroll bars become visible and work goes fine but one problem is that two vertical scroll bars are visible i think one of panel and other of tree view but i have not set scroll bar on tree view and second problem is that when i click plus sign of tree view placed in panel it is expanded and act normally uptil no scroll bars are applied but as soon as scroll is aplied and whenever i move scroll down and then i click on plus,node is not expanded.Hope u understand what i mean to say, i mean uptil my panel is in default position my tree placed on it is working fine but when scrolls are applied and i move my scroll down and then after clicking on tree node it doesnot act normally,may be it is refreshed again and something else i cant understand. and i m making application in C# asp.net web application. Thanx

    B 1 Reply Last reply
    0
    • E EEmaan

      Hi! actually i added my tree view on scroll and i want that when nodes of tree are expanded and tree view's size becomes greater than panel's size then automatically scroll bars should be applied on it. I have done it by writing "overflow:scroll" in style property of panel.Now when size exceeds auto scroll bars become visible and work goes fine but one problem is that two vertical scroll bars are visible i think one of panel and other of tree view but i have not set scroll bar on tree view and second problem is that when i click plus sign of tree view placed in panel it is expanded and act normally uptil no scroll bars are applied but as soon as scroll is aplied and whenever i move scroll down and then i click on plus,node is not expanded.Hope u understand what i mean to say, i mean uptil my panel is in default position my tree placed on it is working fine but when scrolls are applied and i move my scroll down and then after clicking on tree node it doesnot act normally,may be it is refreshed again and something else i cant understand. and i m making application in C# asp.net web application. Thanx

      B Offline
      B Offline
      badgrs
      wrote on last edited by
      #2

      I'm note sure about the node expanding problem but I think the two scroll bars are caused because of CSS inheritance. All child elements of the Panel will inherit the overflow:scroll property (meaning the TreeView container div). I think thats how it works anyway, not 100% sure.

      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