In Development
Last Updated: 25 Feb 2021 08:06 by ADMIN
Lewis
Created on: 27 Jan 2021 16:26
Category: Calendar & Scheduling
Type: Bug Report
0
Calendar: [UWP] Setting display date doesn't update the UI

Programmatically setting the DisplayDate property of the control doesn't update the UI (just shows the same date/appointments)

 

E.g.   Calendar.DisplayDate = Calendar.DisplayDate.AddMonths(2);

 

This worked in version 2020.1.114.1, but after updating the controls this no longer works. 

3 comments
ADMIN
Yana
Posted on: 02 Feb 2021 10:21

Hello Lewis,

Thank you for the follow-up.  I have managed to reproduce the described behavior on UWP - I confirm this is an issue on our side, so I updated the status of this bug report to "Unplanned".  We'll look into it at first chance. 

I am sorry for the caused inconvenience. I've updated your points as a small sign of gratitude for your involvement.

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

Lewis
Posted on: 01 Feb 2021 11:11

Hi Didi, 

 

That doesn't appear to be the issue in this case, I didn't set that property.  

To ensure it isn't any other properties causing the issue I created a new page with just a button and the calendar, I have found that when setting the display date within the constructor (as shown in your example) then it works correctly.

However, if you set it after clicking on the button then it doesn't.  

 

Hope that helps, let me know should you require further information. 

 

Kind regards,

Lewis.

ADMIN
Didi
Posted on: 29 Jan 2021 20:54

Hello Lewis,

Thank you for this report.

I cannot reproduce the issue in a sample project when setting only the display date.

I can reproduce the issue when TitleCellStyle is set. For example:

<input:RadCalendar x:Name="Calendar">
        <input:RadCalendar.TitleCellStyle>
            <input:CalendarCellStyle TextColor="Black"/>
        </input:RadCalendar.TitleCellStyle>
    </input:RadCalendar>

and in code behind: 

public MainPage()
{
    InitializeComponent();
    this.Calendar.DisplayDate = Calendar.DisplayDate.AddMonths(2);
}

We are aware of issues that the TitleCell text is not update when setting title cell style and display date, or navigating to a different view mode. 

The items status are in development:

https://feedback.telerik.com/xamarin/1422394-calendar-uwp-titlecell-text-is-not-updated-when-titlecellstyle-and-displaydate-are-applied 

https://feedback.telerik.com/xamarin/1502114-calendar-uwp-title-text-is-not-updated-when-going-from-monthview-to-dayview-and-titlecellstyle-is-set

Let me know whether the issue you can reproduce observes when TitleCellStyle is set. 

I look forward to your reply.

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