Microsoft Edge JavaScript Error

6 posts, 1 answers
  1. dov765
    dov765 avatar
    3 posts
    Member since:
    May 2012

    Posted 29 May Link to this post

    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>

     

     

  2. Answer
    Rumen
    Admin
    Rumen avatar
    13932 posts

    Posted 31 May Link to this post

    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.
  3. dov765
    dov765 avatar
    3 posts
    Member since:
    May 2012

    Posted 02 Jun in reply to Rumen Link to this post

    Thanks, updating the Telerik controls worked.
  4. Rumen
    Admin
    Rumen avatar
    13932 posts

    Posted 03 Jun Link to this post

    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.
  5. Andrea
    Andrea avatar
    74 posts
    Member since:
    Jan 2005

    Posted 12 Jun in reply to Rumen Link to this post

    HI, is there a workaround for the 2019.1.409 version?
  6. Rumen
    Admin
    Rumen avatar
    13932 posts

    Posted 12 Jun Link to this post

    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.
Back to Top