I have a simple grid that is using UseStaticHeaders="true".
It works fine in IE8, but when I switch to compatibility mode (spoof IE7), the headers are always a few pixels wider than the columns. Since there are many columns, the alignment is way off for the farthest right column.
Here is the grid and a temp datasource. (I stripped down the grid so it was easier to deal with - it still displays this behavior)
Note: you have to be in compatibility mode to see the mis-alignment.
And the code behind:
Let me know what I have to do.
Thanks,
Justin
It works fine in IE8, but when I switch to compatibility mode (spoof IE7), the headers are always a few pixels wider than the columns. Since there are many columns, the alignment is way off for the farthest right column.
Here is the grid and a temp datasource. (I stripped down the grid so it was easier to deal with - it still displays this behavior)
Note: you have to be in compatibility mode to see the mis-alignment.
<telerik:RadGrid ID="theGrid" runat="server" Height="200px" OnNeedDataSource="theGrid_NeedDataSource"> |
<ClientSettings> |
<Scrolling AllowScroll="true" UseStaticHeaders="true"/> |
</ClientSettings> |
<ItemStyle CssClass="editableGridCell" /> |
<AlternatingItemStyle CssClass="editableGridCell" BackColor="#ffffff" /> |
<HeaderStyle CssClass="editableGridHeader" BorderWidth="1px" BorderColor="LightGray" BorderStyle="Solid" /> |
<MasterTableView DataKeyNames="Code" AutoGenerateColumns="false" TableLayout="Fixed" Width="180px"> |
<Columns> |
<telerik:GridBoundColumn DataField="Code" HeaderText="Code Sequence"> |
<ItemStyle Width="90px" /> |
<HeaderStyle Width="90px" /> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Name" HeaderText="Code Name"> |
<ItemStyle Width="90px" /> |
<HeaderStyle Width="90px" /> |
</telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
And the code behind:
protected void theGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
{ |
DataTable table = new DataTable(); |
table.Columns.Add("Code", typeof(String)); |
table.Columns.Add("Name", typeof(String)); |
table.Rows.Add("asdfasdf", "asdfasdfasdfasdf"); |
theGrid.DataSource = table; |
} |
Let me know what I have to do.
Thanks,
Justin