This is a migrated thread and some comments may be shown as answers.

How to maximize the height for the grid

4 Answers 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 20 Jun 2011, 10:52 AM
Dear Sir:

I want the grid to be 100% height for my web page and my page is resizable. i tried to set 100% height for my grid but it is not working. is there any solution for my simple case?

From CH





4 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Jun 2011, 12:16 PM
Hi,

<script type="text/javascript">
            window.onresize = ResizeGrid;
            Sys.Application.add_load(ResizeGrid);
            function ResizeGrid() {
                var radGrid0 = $find("<%= RadGrid1.ClientID %>"); //outer RadGrid 
//                if (document.documentElement.offsetHeight > 425) {
 
                    radGrid0.repaint();
   //             }
            
        </script>


Thanks,
Jayesh Goyani
0
CH
Top achievements
Rank 1
answered on 21 Jun 2011, 02:22 AM
Thks Jayesh ,

how about if the grid is stay in the panel/table and the it will change the size when the browser resize ? am i do the same thing as well?

CH
0
Pavlina
Telerik team
answered on 23 Jun 2011, 01:47 PM
Hello,

I recommend that you examine the code library below, which demonstrates how to configure RadGrid to occupy 100% height of its container (or the total browser window height):
http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
CH
Top achievements
Rank 1
answered on 30 Jun 2011, 08:39 AM
Thks!
Tags
Grid
Asked by
CH
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
CH
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or