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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bindable property SelectedDate not highlighting date on load

Thread ID:





127597 Nov 26,2016 06:48 PM UTC Nov 29,2016 10:55 AM UTC Xamarin.Forms 4
Tags: SfCalendar
Asked On November 26, 2016 06:48 PM UTC

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

Rajkumar Ganesamoorthy [Syncfusion]
Replied On 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 

Replied On 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

Replied On 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. 

Rajkumar Ganesamoorthy [Syncfusion]
Replied On 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 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon