|
-
Jun 15th, 2010, 08:41 PM
#1
Panel with 2 vertical scroll bars?
I don't think this is possible at all, but does anyone know a way to get 2 vertical scroll bars on a panel? Right now here's the code:
Code:
<asp:Panel ID="panScroll" runat="server" ScrollBars="Both" Height="400">
<div>
Content...
</div>
</asp:Panel>
There's a GridView inside the panel and it's so wide that scrolling all the way over to the right to scroll down causes the client to lose their position on the page and would like a scrollbar provided on the left (keeping the one on the right) if it's possible, anyone know of a way to do that?
They'd like a horizontal scrollbar on the top as well as the bottom too if possible.
-
Jun 16th, 2010, 01:15 AM
#2
Re: Panel with 2 vertical scroll bars?
You should have posted in the ASP.Net forum, but anyway, a standard control won't have two scrollbars so you'd have to place a stand-alone horizontal scroll bar on top of your gridview and syncronise its position with the bottom one manually. And this won't look pretty, not to mention that coding it will be painful. Better design would be placing two buttons on the top of your gridview.
Code:
[PREVIOUS FIELD] [NEXT FIELD]
+------+------+------+------+------+
| | | | | |
Your gridview here with a scroll bar
[ |||||| ]
Simply select an appropriate field with each button click.
-
Jun 16th, 2010, 05:43 AM
#3
Re: Panel with 2 vertical scroll bars?
-
Jun 16th, 2010, 08:12 AM
#4
Re: Panel with 2 vertical scroll bars?
Can you show a screen shot of what you are seeing?
You should be able to do something with setting the overflow attribute on the nested div. It will become clearer though when you show a screen shot.
Gary
-
Jun 16th, 2010, 08:23 AM
#5
Re: Panel with 2 vertical scroll bars?
 Originally Posted by gep13
Can you show a screen shot of what you are seeing?
You should be able to do something with setting the overflow attribute on the nested div. It will become clearer though when you show a screen shot.
Gary
I sure can, I'll post the screenshot(s) this evening.
-
Jun 16th, 2010, 08:39 AM
#6
Re: Panel with 2 vertical scroll bars?
Sounds like a plan
-
Jun 17th, 2010, 09:32 AM
#7
Re: Panel with 2 vertical scroll bars?
Took a little longer, but here it is:
Attachment 78683
As you can see, there are a lot of columns. The screenshot only shows 1/11th of the columns and the veritcal scrollbar is all the way on the right.
Last edited by JuggaloBrotha; Jun 30th, 2010 at 02:42 PM.
-
Jun 17th, 2010, 09:49 AM
#8
Re: Panel with 2 vertical scroll bars?
OK.... I'm at a loss.... explain again... why do they need to scroll to the right? The vert scroll is right there...
-tg
-
Jun 17th, 2010, 10:08 AM
#9
Re: Panel with 2 vertical scroll bars?
 Originally Posted by techgnome
OK.... I'm at a loss.... explain again... why do they need to scroll to the right? The vert scroll is right there...
-tg
They want a vertical scroll bar on both the left and the right
The screenshot doesn't show the problem because my screen size is 1600x1200 and is wide enough to see the entire Panel, the client however has a much smaller screen size and has to use the browsers scroll bar to scroll to the right to scroll down on the page and would like to have a scroll bar on the left on the page to scroll down on the screen.
I'm just wondering if it's possible to put the scrollbar on the left, ideally it'd be nice if the client would get a larger screen that can do larger than 1024x768
Last edited by JuggaloBrotha; Jun 17th, 2010 at 10:11 AM.
-
Jun 17th, 2010, 10:14 AM
#10
Re: Panel with 2 vertical scroll bars?
In which case, if you are developing for a known screen size, can you not fix the width of the Panel? That way the right hand scroll bar is always visible?
I don't think you can get a scroll bar on the left.
Gary
-
Jun 17th, 2010, 10:56 AM
#11
Re: Panel with 2 vertical scroll bars?
 Originally Posted by gep13
In which case, if you are developing for a known screen size, can you not fix the width of the Panel? That way the right hand scroll bar is always visible?
I don't think you can get a scroll bar on the left.
Gary
I could, but doing that for 1 client (who has the small screensize) would mean less columns showing at once for the 44 other clients.... so I dont want to shorten the width for 1 person
-
Jun 17th, 2010, 11:07 AM
#12
Re: Panel with 2 vertical scroll bars?
can you make the size relative to the width of the browser? setting the width to a %?
-tg
-
Jun 17th, 2010, 11:19 AM
#13
Re: Panel with 2 vertical scroll bars?
 Originally Posted by JuggaloBrotha
I could, but doing that for 1 client (who has the small screensize) would mean less columns showing at once for the 44 other clients.... so I dont want to shorten the width for 1 person
My bad, I took it this was one site, for one customer.
In which case, can you use tg's suggestion?
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|