The outside border for the RadGrid doesn't show up correctly in IE when the RadGrid is placed inside an HTML table cell (<TD>) with a specific width defined. I'm using the Office2007 skin, but it appears to do this with any skin that uses a colored border around the outside of the RadGrid, and there are enough columns to make the RadGrid larger than the cell it is inside of.
The ASPX code is below, as well as a code-behind I have mocked up to illustrate the problem. I am using IE7 on Windows Vista Ultimate x86. I have been unable to reproduce the problem in FireFox, only IE7.
Code-behind:
Thank you for your attention!
The ASPX code is below, as well as a code-behind I have mocked up to illustrate the problem. I am using IE7 on Windows Vista Ultimate x86. I have been unable to reproduce the problem in FireFox, only IE7.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="testbug.aspx.vb" Inherits="testbug" %> |
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<table style="width:100%;"> |
<tr> |
<td class="style2"> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
</td> |
<td> </td> |
</tr> |
<tr> |
<td width="400"> |
<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007"> |
</telerik:RadGrid> |
</td> |
<td> </td> |
</tr> |
</table> |
</form> |
</body> |
</html> |
Code-behind:
Partial Class testbug |
Inherits System.Web.UI.Page |
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
Dim dt As New DataTable |
Dim r As DataRow |
dt.Columns.Add(New DataColumn("This_is_a_really_long_column_name", GetType(System.String))) |
dt.Columns.Add(New DataColumn("This_is_another_really_long_one", GetType(System.String))) |
dt.Columns.Add(New DataColumn("Here_is_another_long_one", GetType(System.String))) |
dt.Columns.Add(New DataColumn("Boy_these_are_getting_long", GetType(System.String))) |
r = dt.NewRow() |
r(0) = "some texthere" |
r(1) = "some more text" |
r(2) = "here is even more" |
r(3) = "finally last column" |
dt.Rows.Add(r) |
RadGrid1.DataSource = dt |
RadGrid1.DataBind() |
End Sub |
End Class |
Thank you for your attention!