Declined
Last Updated: 23 Oct 2020 06:54 by ADMIN
Robert
Created on: 19 Oct 2020 13:08
Category: DatePicker
Type: Bug Report
0
UWP DatePicker has visual issues when built in release mode

When RadDatePicker is used in debug/testing modes:

 

When running in release mode:

 

 

 

 

The border is missing, and the line under the header date as well.

 

A coworker reports he can't set the header template at all, but I haven't confirmed that yet).

 

The control is defined as follows:

 

<telerikInput:RadDateTimePicker WidthRequest="175" BorderColor="#333" BorderThickness="1" ...
7 comments
ADMIN
Didi
Posted on: 23 Oct 2020 06:54

Hello Robert,

Thank you for sharing your findings. I will update the internal bug item with this information. 

Regards,
Didi
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 https://learn.telerik.com/.

Robert
Posted on: 22 Oct 2020 10:27

Hi Didi,

Looks like another assembly is being stripped out by the native tool chain build and needs to be added.

We can't yet pinpoint what's missing, but it's one of those listed below. It's going to take many hours to find which one is required, because release builds take forever :)

We'll update the bug you logged once we find the answer - or if you do before us, let us know.

Once found, the assembly (or assemblies) will also have to be added to your docs...

typeof(Telerik.XamarinForms.Primitives.PopupBase).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.Primitives.RadPopup).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.Primitives.RadScrollView).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.Primitives.RadPath).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControls.RadSpinner).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControls.SpinnerItemView).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControls.RadSpinnerResourceDictionary).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ItemsControlRenderer).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ItemsView).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ItemsViewItem).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ItemTapCommand).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ListViewCommandBase).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ListViewRenderer).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.NonVirtualizedItemsControl.NonVirtualizedItemsControlItemLabelRenderer).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.InputRenderer.UWP.SegmentedControlRenderer).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.InputRenderer.UWP.SegmentItemTemplateSelector).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.InputRenderer.UWP.DataFormRenderer).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.InputRenderer.UWP.ButtonRenderer).GetTypeInfo().Assembly,
ADMIN
Didi
Posted on: 22 Oct 2020 08:14

Hello Robert, 

Thank you for the provided additional details. I have reproduced the behavior on my side when building the project in release mode. I have logged an issue on your behalf in our feedback portal. You can follow the item at the link below:

https://feedback.telerik.com/xamarin/1491939-datepicker-uwp-date-cannot-be-selected-using-click-gesture-in-release-mode

I have updated your Telerik points as a small sign of gratitude for bringing this issue to our attention.

I can assure you that based on your feedback (We're due for production by the end of this month and this is a really huge issue), I have escalated the issue to the development team for further research. 

Regarding the question: "can we urgently get a fix", when the dev team research the issue, estimate it and provide a potential fix for it, then we can send you a custom build to test this fix on your side. When I have more information about the issue I will send an update in the feedback item.

Regards,
Didi
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Robert
Posted on: 20 Oct 2020 16:12

This is a release build:

 Clicking on any of the numbers does nothing.

 In debug mode, clicking the numbers works as expected:

 

 

So we don't know if we're still missing an assembly that gets stripped out by native tool chain build, or if it's some kind of a bug in your control that manifests in release builds.

If it's a bug on your end - can we urgently get a fix? We're due for production by the end of this month and this is a really huge issue.

 

ADMIN
Didi
Posted on: 20 Oct 2020 11:37

Hi Robert,

I am glad to hear that the issue with the Border appearance is solved. I have logged an internal item for adding this information to the documentation. Thank you for your feedback. I have changed the status of this bug report to "Declined" as this is not an issue in the control.

Regarding the missing assembly "are we still missing an assembly that causes the DatePicker to misbehave in release mode", could you please elaborate more on this? 

If you have the mouse wheel scrolling issue in mind, its status is "Unplanned". Follow it so you will receive an email notification when its status changes. I cannot commit a time frame when a fix for it will be provided. 

Regards,
Didi
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 https://learn.telerik.com/.

Robert
Posted on: 20 Oct 2020 07:27

Thank you, that solved the problem :)

We were expecting something like that to be the issue, but couldn't find it documented anywhere; you might consider adding that to online docs.

But there's another thing - are we still missing an assembly that causes the DatePicker to misbehave in release mode?

Because in release mode the dates are not clickable, only dragging the spinner with the mouse works (we're still waiting for you to implement mouse wheel scroll…).

ADMIN
Didi
Posted on: 20 Oct 2020 06:19

Hi Robert,

Thank you for the provided information. 

My assumption about why the issue occurs is that in release mode the Telerik Primitives assemblies are stripped. I have checked for similar issues on the internet and found the following link in the Xamarin Forum https://forums.xamarin.com/discussion/58805/in-uwp-project-how-do-we-add-assemblies-in-app-xaml-cs-to-compile-with-net-native-toolchain 

Solution: 

Make sure that the Telerik renderers are not stripped out by the UWP .NETNative compilation step. Add the following code inside the App.xaml.cs file of the UWP Project:

var assembliesToInclude = new List<Assembly>
{
	typeof(Telerik.XamarinForms.Input.RadButton).GetTypeInfo().Assembly,
	typeof(Telerik.XamarinForms.InputRenderer.UWP.ButtonRenderer).GetTypeInfo().Assembly,
	typeof(Telerik.XamarinForms.Primitives.RadBorder).GetTypeInfo().Assembly,
	typeof(Telerik.XamarinForms.PrimitivesRenderer.UWP.BorderRenderer).GetTypeInfo().Assembly,
};

Xamarin.Forms.Forms.Init(e, assembliesToInclude);

Please give this solution a try and let me know whether it solves the issue with the RadBorder appearance. 

Regards,
Didi
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 https://learn.telerik.com/.