Treeview in web browser

Hi Experts,

I'm writing a vb.net web application in vs2008 using visual basic and have a treeview on my page.

I can't get the scroll bar to appear.  I've set the height property, placed the treeview in a div control with an absolute height but as I add items to the treeview it just extends down the page, no scrollbar, any ideas?
MOSSPOINTAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
pschramaConnect With a Mentor Commented:
You need to set overflow to scroll, by setting the CssClass on the TreeView and use overflow: scroll in that class. For example:


    <style type="text/css">
       .treeview
       {
          height: 300px;
          overflow: scroll;
       }
    </style>

    <asp:TreeView ID="TreeView1" runat="server" CssClass="treeview">

The default for overflow is visible, so it will still render.
0
 
MOSSPOINTAuthor Commented:
Thanks, works a treat
0
All Courses

From novice to tech pro — start learning today.