Completed
Last Updated: 05 Feb 2020 11:52 by ADMIN
Release R3 2019 SP1
Mario
Created on: 27 Sep 2019 15:12
Category: DateTimePicker
Type: Bug Report
1
Uncaught TypeError: Cannot read property '_popupButton' of null Error thrown when clicking Ok or Cancel buttons of DatePicker's fast navigation

In version R3 2019 (2019.3.917), the following issue is observed with various date pickers: 

Reproduction code and steps:

<telerik:RadDateTimePicker RenderMode="Lightweight" ID="RadDateTimePicker1"  runat="server" >
</telerik:RadDateTimePicker>

1) open date picker, 
2) click on the month/year to open the MonthYearFastNavigation
3) Click Ok or Cancel

Expected: date selected
Actual: JavaScript error: Uncaught TypeError: Cannot read property '_popupButton' of null

4 comments
ADMIN
Peter Milchev
Posted on: 05 Feb 2020 11:52

Hello CESAEROB,

Yes, this was a bug and should not require patches from your side.

That is why we already have this fixed and you can upgrade to the latest version where this problem is absent.

Regards,
Peter Milchev
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
CESAEROB
Posted on: 05 Feb 2020 11:25

Thanks Mario, but I think is not the solution. All my datepickers (+20 in my app)  should work without patches, telerik must solve the problem about something that worked before.

Thanks again

Mario
Posted on: 29 Jan 2020 16:29

HI CESAEROB,

 you can try this, for me this worked.

Telerik.Web.UI.Calendar.MonthYearFastNavigation.prototype._getMonthYearPicker = function () {

    var a = $find(this.CalendarID);
    if (!a) {
        return null;
    }
    if (a.constructor.getName() == "Telerik.Web.UI.RadMonthYearPicker") {
        return a;
    }
    if (a.constructor.getName() == "Telerik.Web.UI.RadCalendar") {
        var id = this.CalendarID
        return $find(id.substring(0, id.length - "_calendar".length))
    }
    return null;
}
CESAEROB
Posted on: 29 Jan 2020 07:22

Same problem in my code with datepickers, any solution?

Thanks