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. Scroll bars of TreeView should be invisble when they are disabled by using CSS class

Scroll bars of TreeView should be invisble when they are disabled by using CSS class

Scheduled Pinned Locked Moved ASP.NET
css
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.
  • I Offline
    I Offline
    indian143
    wrote on last edited by
    #1

    Hi All, I have used a TreeView control which is placed in a Div tag in the master page. Whenever the TreeView controls items exceeds the limit of the Div tag it gives the vertical and horizantol scroll bars. It is Ok. But when the items are not exceeding still it is giving the scroll bar in disable mode. What I want is the scroll bars should not appear when the items are within the limit means when the scroll bars are in disable mode they should not be visible and when they are enabled they should be automatically visible. I want to do it by using any CSS class. Can anybody advice me to do it by using any CSS class. Thanks, Md Abdul Aleem

    Thanks & Regards, Md. Abdul Aleem NIIT technologies

    B 1 Reply Last reply
    0
    • I indian143

      Hi All, I have used a TreeView control which is placed in a Div tag in the master page. Whenever the TreeView controls items exceeds the limit of the Div tag it gives the vertical and horizantol scroll bars. It is Ok. But when the items are not exceeding still it is giving the scroll bar in disable mode. What I want is the scroll bars should not appear when the items are within the limit means when the scroll bars are in disable mode they should not be visible and when they are enabled they should be automatically visible. I want to do it by using any CSS class. Can anybody advice me to do it by using any CSS class. Thanks, Md Abdul Aleem

      Thanks & Regards, Md. Abdul Aleem NIIT technologies

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

      Are you using overflow:scroll? If you use overflow:auto instead does it fix it? See here: http://www.w3schools.com/Css/pr_pos_overflow.asp[^]

      I 1 Reply Last reply
      0
      • B binarymax

        Are you using overflow:scroll? If you use overflow:auto instead does it fix it? See here: http://www.w3schools.com/Css/pr_pos_overflow.asp[^]

        I Offline
        I Offline
        indian143
        wrote on last edited by
        #3

        Hi All, I read the link but I am unable to judge it satisfies my condition or not. I have a div tag as below and I want to make the scroll bar invisible when the tree view control is within the div tags limit means when it is not required the scroll bars should become invisible and when the tree view opens and exceeds the limit of the div tag the scroll bars should come automatically.

        <div id="TreeViewContainer2" class="inline">
        <asp:TreeView ID="treeId" runat="server" SkinId="ExplorerLines" onselectednodechanged="treeId_SelectedNodeChanged" ExpandDepth="1" OnUnload="treeId_Unload" ForeColor="#000099"></asp:TreeView>
        </div>

        Can anybody please help me in doing this. Thanks in advance, Md. Abdul Aleem.

        Thanks & Regards, Md. Abdul Aleem NIIT technologies

        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