We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Bindable property SelectedDate not highlighting date on load

There is a problem with SfCalendar control. It successfully binds to Calendar item collection but until we do not highlight specific date there's not highlight even though month in header is perfectly correct.

Here's the code

<Syncfusion:SfCalendar x:Name="sfCalendar" HeaderHeight="60" DataSource="{Binding calendarItems, Mode=OneWay}" TransitionMode="Float" ShowHeader="True" SelectedDate="{Binding selectedDate, Mode=TwoWay}" ShowNavigationButtons="True" ViewMode="MonthView" ShowInlineEvents="False" HeightRequest="400" FirstDayofWeek="1">

private DateTime _selectedDate { get; set; }
        public DateTime selectedDate
                return _selectedDate;
                _selectedDate = value;

public CalendarViewModel()
            selectedDate = DateTime.Now;
            //new Syncfusion.SfCalendar.XForms.CalendarInlineEvent {  }

It works good when user manually clicks today's date on the calendar.

Attachment: sfCalendar_c483cc08.rar

4 Replies

RG Rajkumar Ganesamoorthy Syncfusion Team November 28, 2016 09:45 AM UTC

Hi Piotr, 
Thank you for contacting Syncfusion Support. 
We have checked the reported issue "SelectedDate not highlighting date on load". But we were unable to reproduce the reported issue . We have attached a sample in which we have checked the reported issue below 
So could you please more information like issue reproducing sample, your application time zone details etc. That will help us to provide appropriate solution on this. 
Rajkumar G 

PI Piotr November 28, 2016 04:21 PM UTC

Hi Rajkumar,
Thank you for you kind reply.

The problem occurs when you add this exact code:
HeaderHeight="60" TransitionMode="Float" ShowHeader="True" ShowNavigationButtons="True" ViewMode="MonthView" ShowInlineEvents="False" HeightRequest="400" FirstDayofWeek="1"    to SfCalendar.  

We have no idea which property causes the problem. You can find your project attached with proper modifcation which causes the exact problem. 
Thank you in advance for your kind help.

Attachment: issueTesting_846405c6.rar

PI Piotr November 28, 2016 05:11 PM UTC


We found the cause fo the issue. We use the European firstDayOfWeek set to "1" so the week starts from Monday. When the property is set as we mentioned, Today's is not beeing highlighted. Could you please include this test in further investigation. 

RG Rajkumar Ganesamoorthy Syncfusion Team November 29, 2016 10:55 AM UTC

Hi Piotr,

Thanks for your update.

A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates


Please let me know if you have any questions.

Rajkumar G 

Live Chat Icon For mobile
Up arrow icon