Hello,
I've been searching for a solution to my problem, but it appears that my issue is unique.
I have had a working web site using RadGrid grid controls for several years until yesterday. Orginally, this was developed in a 2008 version of Telerik Radcontrols, but I have recently updated it to Version=2013.3.1015.35 to run on a soon-to-be sunset-ed web server. This upgrade occurred in October or so and things have been fine until a few days ago.
I had to make a change some C# logic that had been discovered to be wrong. Once the code was tested and approved, the changes were pushed to the production server. A few days later, it was discovered that there was a problem adding records to the back-end database and having the grid redraw itself. In fact, the error seems to be coming from the client since it is bypassing any server side error handling that I've built.
The funny twist on this is that there is nothing really happening to the grid. The users are selecting data from ASP controls that will then be posted back to the database and the grid will be redrawn after the users is done selecting and typing what they need. They don't get that far. Before there can be any finalization, the ASP form throws and unhandled exception and references a GridTemplateColumn as the culprit.(See attached). All server-side code executes without a hitch, but as soon as the grid is being drawn, this error comes up.
Here is the RadGrid ASP.NET code for the GridTemplateColumn:
I am not sure why this is happening and I am out of ideas. Any help would be greatly appreciated.
I've been searching for a solution to my problem, but it appears that my issue is unique.
I have had a working web site using RadGrid grid controls for several years until yesterday. Orginally, this was developed in a 2008 version of Telerik Radcontrols, but I have recently updated it to Version=2013.3.1015.35 to run on a soon-to-be sunset-ed web server. This upgrade occurred in October or so and things have been fine until a few days ago.
I had to make a change some C# logic that had been discovered to be wrong. Once the code was tested and approved, the changes were pushed to the production server. A few days later, it was discovered that there was a problem adding records to the back-end database and having the grid redraw itself. In fact, the error seems to be coming from the client since it is bypassing any server side error handling that I've built.
The funny twist on this is that there is nothing really happening to the grid. The users are selecting data from ASP controls that will then be posted back to the database and the grid will be redrawn after the users is done selecting and typing what they need. They don't get that far. Before there can be any finalization, the ASP form throws and unhandled exception and references a GridTemplateColumn as the culprit.(See attached). All server-side code executes without a hitch, but as soon as the grid is being drawn, this error comes up.
Here is the RadGrid ASP.NET code for the GridTemplateColumn:
<telerik:GridTemplateColumn UniqueName="tempLDTEff1" DataType="System.DateTime" HeaderText="LDT1 Effective Date" Reorderable="False" Resizable="False" ShowSortIcon="False" HeaderStyle-Width="80px" DataField="LDT1EffPct" ReadOnly="True" > <HeaderTemplate> <asp:Label ID="headLDTEff1" Text ="LDT1 Effective Date" runat="server"> </asp:Label><br /> <asp:TextBox ID="txtNewLDTDate1" runat="server" ToolTip="Type new date to add an LDT. Can accept 'mm/dd/yyyy' and 'm/d/yyyy' formats" OnTextChanged="txtNewLDTDate1_OnTextChanged" AutoPostBack="true" Font-Bold="true" onKeyDown="if(event.keyCode==13) event.keyCode=9;" Width="75px" > </asp:TextBox> <asp:Button ID ="btnLDT1Delete" runat="server" Text ="Delete LDT1" Visible="false" OnClick="btnLDT1Delete_Click" BorderStyle="None" Font-Underline="true" ForeColor="Blue" BackColor="Transparent"/> <asp:RegularExpressionValidator ID="regExtNewLDTDate1" runat="server" ErrorMessage="Invalid date format. Can accept 'mm/dd/yyyy' and 'm/d/yyyy' formats" ControlToValidate="txtNewLDTDate1" Display="Static" ValidationExpression="^[0,1]?\d{1}\/(([0-2]?\d{1})|([3][0,1]{1}))\/(([1]{1}[9]{1}[9]{1}\d{1})|([2-9]{1}\d{3}))$"> </asp:RegularExpressionValidator> <asp:Label ID="lblLDT1" runat="server">New LDT Effort % </asp:Label> </HeaderTemplate> <ItemTemplate> <telerik:RadNumericTextBox runat="server" ID="txtLDT1Dt" DbValue='<%# Eval("LDT1EffPct") %>' OnTextChanged="TextChanged" AutoPostBack="true" onKeyDown="if(event.keyCode==13) event.keyCode=9;" Width="50px"> </telerik:RadNumericTextBox> </ItemTemplate> <FooterTemplate> <asp:Label ID="footLDTEff1" Text ="LDT1 Sum" runat="server" Font-Bold="true"></asp:Label> </FooterTemplate> <HeaderStyle Width="80px"></HeaderStyle> </telerik:GridTemplateColumn>