use scrollbars in Treeview on website

Discussion in 'ASP .Net' started by ton, Apr 16, 2008.

  1. ton

    ton Guest

    Hi,

    How can I limit the size of a treeview on a webform so the user can scroll
    on its page.

    I've allready placed the control in a DIV like:

    <div style="OVERFLOW:auto; WIDTH:100%; HEIGHT:140px">
    <asp:TreeView style="Z-INDEX: 100; LEFT: 0px; POSITION: absolute; TOP:
    0px" Height="200px" id="TreeView1" runat="server" ImageSet="XPFileExplorer"
    NodeIndent="15" Width="176px" ShowLines="True">
    <ParentNodeStyle
    Font-Bold="False"></ParentNodeStyle>
    <HoverNodeStyle ForeColor="#6666AA"
    Font-Underline="True"></HoverNodeStyle>
    <SelectedNodeStyle BackColor="#80FFFF"
    HorizontalPadding="0px" VerticalPadding="0px" Font-Underline="False"
    BorderStyle="Solid"></SelectedNodeStyle>
    <NodeStyle NodeSpacing="0px" HorizontalPadding="2px"
    ForeColor="Black" VerticalPadding="2px" Font-Size="8pt"
    Font-Names="Tahoma"></NodeStyle>
    </asp:TreeView>
    </div>

    but nothing happens, the entire list is shown and visible on the webpage

    thanx


    ton
     
    ton, Apr 16, 2008
    #1
    1. Advertising

  2. ton

    Mick Wilson Guest

    You've defined the treeview's position as absolute, taking it out of
    the parent div. Try applying the overflow property to the treeview
    itself or redesigning to preserve the relationship between the
    container div and your treeview control so that the overflow property
    applies successfully to both.
     
    Mick Wilson, Apr 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    24,484
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  2. =?Utf-8?B?RGFuIFNpa29yc2t5?=

    HOWTO: Use multiline asp:texbox scrollbars on panel that is disabl

    =?Utf-8?B?RGFuIFNpa29yc2t5?=, Apr 11, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    482
    =?Utf-8?B?RGFuIFNpa29yc2t5?=
    Apr 11, 2006
  3. Mufasa
    Replies:
    0
    Views:
    822
    Mufasa
    Jun 10, 2007
  4. abargaddon
    Replies:
    0
    Views:
    1,070
    abargaddon
    Jan 17, 2008
  5. SilentCry

    why no scrollbars on my treeview?

    SilentCry, May 9, 2009, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    861
    SilentCry
    May 9, 2009
Loading...

Share This Page