Pending Review
Last Updated: 05 Jan 2021 14:40 by ADMIN
Created on: 31 Dec 2020 13:07
Category: TimePicker
Type: Bug Report
RadTimePicker - memory leaks



RadTimePicker objects remain in memory because, in the DateTimePicker class, it subscribe  on event Window.Current.SizeChanged but you never unsubscribe. So it generates memory leaks. The control will never be removed by the GC(garbage collector).



Source code:


 /// <summary>
        /// Initializes a new instance of the <see cref="DateTimePicker"/> class.
        /// </summary>
        protected DateTimePicker()
            var languages = new List<string> { this.CalendarLanguage };
            var calendar = new Windows.Globalization.Calendar(languages, this.CalendarIdentifier, ClockIdentifiers.TwelveHour);
            this.calendarValidator = new CalendarValidator(calendar);
            this.selectorUtcValue = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
            this.utcValue = this.selectorUtcValue;
            Window.Current.SizeChanged += this.Current_SizeChanged;

1 comment
Posted on: 05 Jan 2021 14:39

Hi Piotr,

I confirm this is an issue on our side and updated the type of this thread to public bug report available in our feedback portal. 

I am afraid at the moment there isn't a workaround I can suggest. Please follow the feedback item to get notified on status changes.

Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at