Unable to remove CurrentDate background colour (RadCalendar)

1 Answer 52 Views
Calendar
Dev
Top achievements
Rank 1
Dev asked on 31 Oct 2023, 10:21 AM

I'm implementing the RadCalendar in my MAUI app but there  is a problem. I need to remove the current date coloured circle over a date and just change the background colour. of the current date. I've tried to change the template for the day, but that changes all days.

The forms version doesn't have the current day shown as anyything orther than the border of the current day shown. Can this be replicated in the MAUI version?

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 02 Nov 2023, 02:38 PM

Hello,

In order to use the today date you need to use the node.IsToday and apply the style you want for the IsToday. 

We have a styling example here: https://docs.telerik.com/devtools/maui/controls/calendar/styling/day-styling 

   if (isToday || !node.IsEnabled)
   {
       return base.SelectStyle(item, container);
   }
Here the base style is returned, so if you want to customize it set a custom style. for example I used the SundaySelectedMouseOverLabelStyle

 

if (isToday || !node.IsEnabled)
{
    return this.SundaySelectedMouseOverLabelStyle;
}

Regards,
Didi
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Tags
Calendar
Asked by
Dev
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or