Hello,
I have a lot of trouble setting the grid's height to 100%. I know there are a lot of posts for this problem, and some solutions, but they didn't work for me. This is my code.
| <table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%"> |
| <tr style="width: 100%; height: 100%"> |
| ... |
| <td style="width: 100%; height: 100%"> |
| <table id="_ctl8" cellspacing="0" cellpadding="0" border="0" width="100%" height="100%"> |
| <tr height="100%"> |
| <td height="100%"> |
| <table id="_ctl10" class="crpObjectBorder" cellspacing="0" cellpadding="0" border="0" |
| width="100%" height="100%"> |
| <tr> |
| <td> |
| <table class="crpTabBar" cellspacing="0" cellpadding="1" border="0" width="100%" |
| height="100%"> |
| <tr> |
| <td class="bottomborder titleBar" id="pageTitle"> |
| Search results |
| </td> |
| </tr> |
| <tr style="height: 100%; width: 100%"> |
| <td class="crpDataPanel" style="height: 100%; width: 100%"> |
| <div id="divRadGrid" style="height: 100%; width: 100%"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" |
| OnAjaxSettingCreated="RadAjaxManager1_AjaxSettingCreated"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="gridSearchResOrders"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="gridSearchResOrders" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="gridSearchResOrderLines"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="gridSearchResOrderLines" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" |
| Width="75px" Transparency="10"> |
| <img alt="Loading..." src="../images/loading.gif" style="border: 0px;" /> |
| </telerik:RadAjaxLoadingPanel> |
| |
| <telerik:RadSplitter ID="Splitter" runat="server" Width="100%" Height="100%" Orientation="Horizontal"> |
| <telerik:RadPane ID="RadPane" runat="server" Height="100%" Width="100%" BorderStyle="None"> |
| <!-- Grid: Orders search results --> |
| <telerik:RadGrid ID="gridSearchResOrders" runat="server" GridLines="None" AllowPaging="True" |
| ImagesPath="~/styles/Grid" AllowSorting="True" AutoGenerateColumns="False" OnNeedDataSource="gridSearchResOrders_NeedDataSource" |
| Skin="MyGray" EnableAJAX="true" EnableEmbeddedSkins="False" BorderWidth="1" Width="100%" Height="100%" |
| HorizontalAlign="Center" EnableEmbeddedBaseStylesheet="False" AllowMultiRowEdit="false"> |
My problem is that in IE 7 and Safari 3 the grid has a fixed sized of 10px, and in Firefox 3, the headers are huge, occupying almost the whole screen, while the grid content has a 10px height size.
I have tried to put the grid inside a pane and a splitter like suggested here
http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx . But this example only works on IE. Testing it on Firefox 3 or Safari 3 I've noticed that it doesn't work, the grid being resized to 10px.
I have made 2 screenshots of the grid, running in Firefox 3 and in IE 7.
Grid in Firefox 3
Grid in IE 7
I am using C#, ASP.NET 2.0, Telerik 2008.03.1125.20 on IE 7 and Firefox 3 on Windows XP.
Any suggestions? Is it something i'm doing wrong. I've spent too much time on this already.
Many thanks,
Adrian.