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
close icon

Highlight Selected Date on load using MVVM

Hi,
   I want to highlight the selected date on load of the control. I'm using Xamarin forms and MVVM. This is my Xaml

<Calendar:SfCalendar x:Name="calendar"                                    
                                     MaxDate="{Binding PlanEndDate,
                                                       Mode=TwoWay}"
                                     MinDate="{Binding PlanStartDate,
                                                       Mode=TwoWay}"
                                     SelectedDate="{Binding SelectedDate,
                                                            Mode=TwoWay}"
                                     SelectionMode="SingleSelection"
                                     ShowNavigationButtons="True"
                                     VerticalOptions="FillAndExpand"
                                     ViewMode="MonthView"/>

I have a property in my Viewmodel

 private DateTime _selectedate;

        public DateTime SelectedDate
        {
            get { return _selectedate; }
            set { Set(() => SelectedDate, ref _selectedate, value); }
        }

which is used to fetch the selected date. Now when I tap a date and save the page, I do get the SelectedDate, but I am not able to set the selected date in the control using the Property.

3 Replies

RG Rajkumar Ganesamoorthy Syncfusion Team October 25, 2016 09:18 AM UTC

Hi Madhav,

We have created a new support incident under your account to track the status of your latest query. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents  

Please let us know, if you have any query.

Regards,
Rajkumar G.



 



YV Yann Vinée November 14, 2016 02:29 PM UTC

Hi,
I have the same problem.
When do you plan to release a version with a correction of this bug ?



RG Rajkumar Ganesamoorthy Syncfusion Team November 15, 2016 11:40 AM UTC

​Hi Yann,

We have fixed the reported issue "Issue with SelectedDates binding".
This fix will be included in our upcoming volume release 4,2016 which will be available on mid of November.

Regards,
Rajkumar G





 


Loader.
Live Chat Icon For mobile
Up arrow icon