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

[Solved] 100% Grid Width not working in IE

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 02 Jun 2008, 04:22 PM
I am trying to get a grid to fit within a container and be 100% of the width and height. I have tried it many different ways with no success.

here is the code snippet from the aspx page that I am using. It seems to work fine in Firefox, but not IE. Any Suggestions.

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:AccessDataSource ID="AccessDataSource1" DataFile="~/App_Data/Nwind.mdb"
SelectCommand="SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"runat="server"></asp:AccessDataSource>
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;height:100%;">
<tr style="height:30px;"><td style="height:30px;padding:3px;">
toolbar here
</td></tr>
<tr style="height:30px;"><td style="height:30px;">
menubar here
</td>
</tr>
<tr><td style="background-color:Aqua;">
<div style="height:100%;width:100%;overflow:hidden;background-color:#fff;">
<telerik:RadGrid Height="100%" Width="100%" ID="RadGrid1" runat="server" AllowSorting="True" GridLines="None" DataSourceID="AccessDataSource1" Skin="Vista">
<PagerStyle Mode="NumericPages" />
<MasterTableView Width="100%" />
<HeaderStyle Width="400px" />
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
</ClientSettings>
</telerik:RadGrid>
</div>
</td></tr>
</table>

Thanks,
Tom

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Jun 2008, 06:27 AM
Hi Thomas,

Go through the following code ibrary link.
http://www.telerik.com/community/code-library/submission/b311D-keegm.aspx

Princy.
Tags
Grid
Asked by
Thomas
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or