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

Microsoft Edge JavaScript Error

5 Answers 73 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
dov765
Top achievements
Rank 2
dov765 asked on 29 May 2019, 12:10 PM

RadDatePicker inside UpdatePanel in Microsoft Edge browser throws JavaScript error when doing a post-back (see attached image).

The error: "Unable to get property 'length' of undefined or null reference".

Any ideas how to fix this, or a work-around?

 

Microsoft Edge 44.17763.1.0

Telerik Controls: Telerik.Web.UI, Version=2019.1.409.45

 

My Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EdgeDatePickerIssue.Default" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title>Default</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server" ScriptMode="Release" />
 
        <asp:UpdatePanel runat="server" ID="upPanel">
            <ContentTemplate>
                <label>Select Date:</label>
                <telerik:RadDatePicker ID="dpStartDate" runat="server"
                    MaxDate="2020-01-01" MinDate="2000-01-01"
                    AutoPostBack="true" OnSelectedDateChanged="dpStartDate_SelectedDateChanged" />
 
                <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>

 

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 31 May 2019, 09:46 AM
Hi Dov,

Thank you for reporting this issue.

It is fixed in the official R2 2019 release 2019.2.514. Can you please test it and let me know if you still experience it?

If for some reason the issue still persists after the upgrade, set the RenderMode property of RadDatePicker to Lightweight and test again:

<asp:UpdatePanel runat="server" ID="upPanel">
    <ContentTemplate>
        <label>Select Date:</label>
        <telerik:RadDatePicker ID="dpStartDate" runat="server" RenderMode="Lightweight"
            MaxDate="2020-01-01" MinDate="2000-01-01"
            AutoPostBack="true" OnSelectedDateChanged="dpStartDate_SelectedDateChanged" />
 
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
    </ContentTemplate>
</asp:UpdatePanel>



Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
dov765
Top achievements
Rank 2
answered on 03 Jun 2019, 02:07 AM
Thanks, updating the Telerik controls worked.
0
Rumen
Telerik team
answered on 03 Jun 2019, 10:09 AM
Thank you for the confirmation and follow-up, Dov! Much appreciated!

Have a productive and successful week.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Andrea
Top achievements
Rank 2
answered on 12 Jun 2019, 08:17 AM
HI, is there a workaround for the 2019.1.409 version?
0
Rumen
Telerik team
answered on 12 Jun 2019, 08:48 AM
Hi Andrea,

The fix is not available for version 2019.1.409, which is a nightly build, suitable for testing purposes only.

Please upgrade to 2019.2.514 to solve the issue.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DatePicker
Asked by
dov765
Top achievements
Rank 2
Answers by
Rumen
Telerik team
dov765
Top achievements
Rank 2
Andrea
Top achievements
Rank 2
Share this question
or