scroll bar on panel

Discussion in 'ASP.NET / ASP.NET Core' started by NewToDotNet, Mar 19, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm new to .NET, this question may be a dumb one.

    I have a tree view on a panel. My tree view has more than 100 nodes. So I have to scroll down the page to see other nodes. My question is: Is there a way to make/put a scroll bar on the panel that contains the tree view, so I just use scroll bar on that panel (instead of using scroll bar of the browser?
     
  2. I don't think so. As far as I know, the only way to get scrollbars is by using Frames, or by using (java)scripting ...

    --
    Steurm
    www.steurm.net/steurm
     
  3. Yes

    Surround it with a <DIV> tag
    ie:
    Panel pnl = new Panel();
    ....

    writer.Write("<div style='OVERFLOW: auto;WIDTH:380px;POSITION: static; HEIGHT: 1px;");

    writer.Write("align='center' valign='center'>");
    pnl.RenderControl(writer);
    writer.Write("</div>");




    [/quote]
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page