PDA

View Full Version : scroll bar on panel


NewToDotNet
03-19-2004, 09:14 AM
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?

steurm
03-21-2004, 10:51 AM
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

blabberblog
03-22-2004, 11:33 AM
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]