I've had this same code for years and it has always worked. Now with the latest release it is broken. I'm not using any new features or anything like that. When this code runs the cells shift and become huge. So basically the cells become 5 times as big (in height) and the columns shift over (leaving a broken appearance). This code is abbreviated of course and called from the grid_prerender event during a post back. The grid is in an update panel. Also I'm using IE10. It works in 2013.1.417.45. As soon as i switch to the new dlls, it breaks.
Also here is my markup in case you're interested:
foreach (GridDataItem item in grid.Items) { //Get the instance of the right type GridDataItem row = item as GridDataItem; try { string sColName = String.Empty; string sValue = String.Empty; string sValueField = String.Empty; foreach (GridColumn col in grid.MasterTableView.Columns) { sColName = col.UniqueName; if (sColName.Contains("String") && grid.MasterTableView.GetColumnSafe(sColName.Replace("String", "")) != null) { // If String is present we will use the numeric field equivalent without "String" for calculations sValueField = sColName.Replace("String", ""); } else { sValueField = sColName; } sValue = row[sValueField].Text.Replace("$", "").Replace(",", "").Replace("%", "").Replace("M", ""); if (sValue.IsNumeric()) { row[sColName].BackColor = ColorTranslator.FromHtml("#fce9b3"); } // Get rid of the border row[sColName].BorderColor = Color.Transparent; } }Also here is my markup in case you're interested:
<asp:UpdatePanel ID="upnlGridOverview" runat="server" UpdateMode="Conditional"> <ContentTemplate> <telerik:RadGrid ID="gridOverview" runat="server" AllowPaging="True" AllowSorting="True" AllowCustomPaging="True" ShowGroupPanel="false" AutoGenerateColumns="false" PageSize="10" MasterTableView-AllowCustomPaging="true" Skin="swExcel2010" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" ShowFooter="false" OnNeedDataSource="gridOverview_NeedDataSource"> <MasterTableView TableLayout="Fixed" OverrideDataSourceControlSorting="true" Width="100%" Visible="true"> <PagerTemplate> <uc1:GridPagerTemplate ID="GridPagerTemplate2" runat="server" /> </PagerTemplate> <PagerStyle AlwaysVisible="true" /> <NoRecordsTemplate> <uc2:GridNoRecordsTemplate ID="GridNoRecordsTemplate1" runat="server" /> </NoRecordsTemplate> <Columns> <telerik:GridBoundColumn UniqueName="Date" SortExpression="GroupDate" HeaderText="Date" DataField="DateString" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Left" FooterAggregateFormatString="Total Dates: {0:#,0}" FooterStyle-HorizontalAlign="Right" Aggregate="Count"> <HeaderStyle></HeaderStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Visitors" DataFormatString="{0:#,0}" SortExpression="Visitors" HeaderText="Visits" DataField="Visitors" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" FooterAggregateFormatString="Avg: {0:#,0}" FooterStyle-HorizontalAlign="Right" Aggregate="Avg"> <HeaderStyle></HeaderStyle> </telerik:GridBoundColumn> </Columns> <SortExpressions> </SortExpressions> </MasterTableView> <GroupingSettings GroupContinuesFormatString="" GroupContinuedFormatString="" /> </telerik:RadGrid> </ContentTemplate> </asp:UpdatePanel>