Panels not scrolling

I am not sure what has happened here, but I have 3 panels, and these 3 panels are nested inside one large, thus:

<asp:panel id="pnlMain" runat="server" Height="60%" Width="100%"> <div id="div1"> <asp:panel id="panel1" runat="server" Height="100%" width="100" scrollbars="vertical"/> </div> <div id="div2"> <asp:panel id="panel2" runat="server" Height="100%" width="100" scrollbars="vertical"/> </div> <div id="div3"> <asp:panel id="panel3" runat="server" Height="100%" width="100" scrollbars="vertical"/> </div> </asp:panel>

What is happening is that when I add my gridviews to these nested panels, the panel is just getting larger, the scroll bars are not scrolling, in other words the panels are stretching rather than their height staying fixed.

How do I fix this?

Thanks

--------------Solutions-------------

Try changing your heights to a fixed number rather than 100%.

Category:asp.net Time:2010-02-09 Views:1
Tags: asp.net panels

Related post

  • How can you stop a Winforms Panel from scrolling? 2009-01-07

    If you put a DataGridView that is 400 pixels high on a panel that's 300 pixels high, so that there's a scroll bar on the panel, then scroll down so that the lower half of the grid is shown, then click on a control outside the panel, then click on a l

  • How can I cause a panel to scroll programatically to expose its AutoSized picture box 2009-11-26

    I have a picture box set to AutoSize so that the image forces it to grow to the image's full size. The picture box is in a panel with autoScroll = true, so that scroll bars appear when the picture is larger than the panel. How can I programmatically

  • Find the upper left coordinate of a panel when scrolling 2010-01-08

    How to find the upper left coordinate of a panel when scrolling? (.net 2) Let's say an example in VB.NET that maintains a textBox in the left border of the custom the panel (myPanel.vb): Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms

  • Panel not scrolling to focused control when input panel opens 2010-10-04

    Working on a Windows Mobile 6.5 application and having an issue that I would think would be handled automatically. I have a panel on the form and have it's AutoScroll property set to true. Have a textbox that shows an inputpanel on focus. For testing

  • YUI Panel and scrolling 2009-03-08

    I have a draggable YUI Panel defined like this new YAHOO.widget.Panel("parameters", { fixedcenter: true, constraintoviewport: true, underlay: "shadow", visible: false, close: true, draggable: true, width: "350px" }); When the panel is shown, I want i

  • .NET WinForm writing within panel causes scrolling to jump 2009-03-10

    I have a FlowPanelControl and a custom user control (contains a label and button). I am adding instances of the custom user control to the controls collection of the panel, which flow beneath each other as expected; showing the vertical scroll bar fi

  • WPF wrap panel and scrolling 2010-01-22

    I have a simple WrapPanel which contains a number of wide controls. When I resize the Width of the Window everything works as expected. The controls will go across on a single line if there is enough space or wrap down to the next line when there isn

  • GWT 100% height panel with scroll 2010-06-10

    Could anyone help me make normal layout in GWT. I need a main panel which: fills all the browser space (100% height); if being collapsed too much shows scroll bars (autoscroll). When I use old layout (RootPanel, VerticalPanel) I have scroll, but can'

  • How to avoid overlaying strings in a customized combobox dropdown panel while scrolling? 2010-10-21

    I have an odd problem with an enhanced WinForms ComboBox I wrote in C#. The box shows a list of colors with the color itself and the name of the color and is set to ComboBoxStyle.DropDownList, double buffering and DrawMode.OwnerDrawFixed. The items a

  • Why does clicking in a text box cause an AutoScroll panel to scroll back to the top? 2010-12-05

    Finishing up a register form in a C# application and I noticed with the panel if I enable AutoScroll and then have a textbox that is below the scroll and click on it it jumps all the way back up to the top. Is there a way to fix this with some code o

  • How to determine the full size of a Panel (including scroll bars) in C# 2011-07-29

    The problem I am having is with a panel, which starts at the size 200x200 pixels. For the program I am writing, at any given time I need to know how big this panel is, but this gets difficult as AutoScroll is on and when large content is inserted the

  • how to stop page jumping and maintain both panel & browser scroll position when user click on datalist item? 2012-03-07

    I have a datalist inside the panel <asp:Panel ID="Panel1" runat="server" ScrollBars="Vertical"> <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" OnItemDataBound="DataList1_ItemDataBound" CaptionAlign="Left"> <It

  • Reorder panels in scroll-pane 2012-05-03

    Currently I'm having a container to list all the (JPanel) panels in a scroll pane. The function that I'm trying to accomplish is trying to reorder the panels. For example: moving the 2nd panel to the first, then moving the 3rd panel to the last spot.

  • Fixed panels while scrolling on a centered design 2011-07-01

    Okay, so I'd like to use a layout that has three divs (laid out as columns). The outer two will be navigation related, so I'd like them to remain in place as the user scrolls. The middle part will house the content, so it will need to scroll normally

  • Scrolling panel causes controls to appear halfway down panel 2010-07-19

    I've got a strange problem here. I have a winforms panel which programatically has labels and a usercontrol (which is capable of collapsing/expanding) added. The user defined controls are in groups which is where the labels come in to it. Due to the

  • Sencha Touch: Scrolling an Ext.Panel with a Vimeo video inside breaks the scroll 2011-06-16

    I'm running the latest download of sencha-touch off of the website download page. I've got an html template with a nested iFrame that contains a Vimeo video. When I touch any space AROUND the video, the panel scrolls exactly as expected, however, if

  • panel scrolling programmable 2011-11-01

    Hey all I am trying to control the horizontal scroll of a panel box in vb.net. The problem is that I can only seem to move it just a little bit using the following code: Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.

  • Internet Explorer 8 Favorites Panel becomes blank when I scroll with mouse 2013-02-27

    Windows 7 Home Premium, 2GB RAM. I pin the Favorites panel in IE8. If I point to the area to the right of the Favorites / Feeds / History tabs and then scroll the mouse using the wheel, the favorites all disappear. The same thing happens if I'm viewi

  • Need to mousewheel scroll a usercontrol 2009-03-04

    I have a usercontrol I created. I added a panel and a vertical scrollbar to the right of it. I'd like to be able to scroll it with the mousewheel. The problem is there doesn't seem to be any events that fire on mousewheel. If I take the panel off the

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 1.006 (s). 13 q(s)