Results 1 to 13 of 13

Thread: Panel with 2 vertical scroll bars?

  1. #1

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  2. #2
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    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.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Panel with 2 vertical scroll bars?

    Moved To ASP.NET

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  5. #5

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Panel with 2 vertical scroll bars?

    Quote Originally Posted by gep13 View Post
    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.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  6. #6

  7. #7

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Panel with 2 vertical scroll bars?

    Quote Originally Posted by techgnome View Post
    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.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  10. #10
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  11. #11

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Panel with 2 vertical scroll bars?

    Quote Originally Posted by gep13 View Post
    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
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  12. #12
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Panel with 2 vertical scroll bars?

    can you make the size relative to the width of the browser? setting the width to a &#37;?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  13. #13
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Panel with 2 vertical scroll bars?

    Quote Originally Posted by JuggaloBrotha View Post
    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
  •  



Click Here to Expand Forum to Full Width