Completed
Last Updated: 24 Feb 2021 13:02 by ADMIN
Release R1 2021 SP1
Robert
Created on: 19 Nov 2020 09:01
Category: Calendar & Scheduling
Type: Bug Report
0
Calendar: [UWP] Month name does not use the current culture when setting TitleCellStyle

Default calendar:

<telerikInput:RadCalendar x:Name="calendar"/>

 

 

Setting some styles (copied from https://docs.telerik.com/devtools/xamarin/controls/calendar/styling/calendar-styling-cell) :

<telerikInput:RadCalendar x:Name="calendar">
    <telerikInput:RadCalendar.TitleCellStyle>
        <telerikInput:CalendarCellStyle BackgroundColor="LightBlue" 
            TextColor="Gray" 
            FontSize="20"/>
        </telerikInput:RadCalendar.TitleCellStyle>
    <telerikInput:RadCalendar.DayNameCellStyle>
        <telerikInput:CalendarCellStyle TextColor="Black"/>
    </telerikInput:RadCalendar.DayNameCellStyle>
</telerikInput:RadCalendar>

 

 

 The month name loses current culture localization once the cell is styled. 

3 comments
ADMIN
Georgi
Posted on: 17 Feb 2021 08:50

Hello,

This item is available in latest internal build - LIB 2021.1.216 (16/2/2021)) and it will be also available in the next official release. You can find the LIB as a prerelease nuget or download the assemblies from your account.

Regards,
Georgi
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/.

ADMIN
Didi
Posted on: 23 Nov 2020 16:27

Hi Robert,

I have tested the scenario and I reproduced the issue on my side. The bug report type is changed to "Unplanned" and your Telerik points are updated.

The dev team researched the case and found a workaround for this issue using a custom renderer. I have attached a sample project. Please download and test on your side. The renderer implementation is inside the CustomCalendarRenderer.cs file inside the UWP project. 

For testing purposes - I have changed the application language to France inside the App.xaml.cs file, as I have issues changing the current UI culture on the windows machine. 

Yes, you are right the styles applied are from the native UWP Calendar control. 

I hope this workaround will help you achieve the requirements you have.

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/.

Attached Files:
Robert
Posted on: 19 Nov 2020 09:02
The font also looks vastly different. I guess the original one is natively provided by Windows and seems to be Segoe UI Light.