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

Highlight Selected Date on load using MVVM

Thread ID:

Created:

Updated:

Platform:

Replies:

127056 Oct 24,2016 06:25 AM UTC Nov 15,2016 11:40 AM UTC Xamarin.Forms 3
loading
Tags: SfCalendar
Madhav Shenoy
Asked On October 24, 2016 06:25 AM UTC

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.

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



 


Yann Vinée
Replied On 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 ?


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





 


CONFIRMATION

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.

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

;