Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
FrameStyle Height
posted

I have a WebGrid that is in a table.  This table is in an UpdatePanel with UpdateMode=Conditional.  The table height is 100% and the WebGrid on the UltraWebGrid is set to a height of 100%.  I set the DisplayLayout.FrameStyle.Height to 100% and when I bind to the datagrid, it isn't showing the rows at all, just the header and the filter row.

However, whenever I set the DisplayLayout.FrameStyle.Height to something like 300px or 500px, it works fine and I can see (up to 300px or 500px) of rows.

What I need is for the grid to fill the rest of the page (down to the statusbar) and then scroll the frame area when it reaches the bottom.

Can anyone help?

Parents
No Data
Reply
  • 28464
    posted

     The problem is that UltraWebGrid renders as HTML <table> tag and height 100% for it is generally not accepted in most browsers. In IE6/7 you can have height 100% if you are in quirks mode (you need to remove the DOCTYPE ... line from the beginning of your ASPX page containing the grid). So, if this is possible for you, just remove the DOCTYPE. I do recommend the following article, so that you can get better idea of why height 100% for tables is problematic and the possible workarounds for the problem

    http://apptools.com/examples/tableheight.php

Children