MVVM change selected dates color in SfCalendar

Hello, is there a way to change selected dates colors. I know selectedDateColor changes the color but it changes the colors for all the selected dates. What i need is how can i change the colors of the selected dates based on a condition. 

I need it in the MVVM way. I tried the behaviours but i got an error that i could not fix. 

Thanks in advance.

3 Replies

SS SaiGanesh Sakthivel Syncfusion Team May 5, 2020 12:35 PM UTC

Hi Donjet, 
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported query change selected dates color in SfCalendar based on condition from our end. We regret to inform you that as per implementation of SfCalendar, the SelectedDateColor property is used to change the color for all the Selected dates and there is no support available for the changing the selected dates based on the condition. 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel


DS Donjet Salihi May 5, 2020 12:39 PM UTC

Thanks for responding. Is there a way i can do it by having access in the monthCellLoaded event ?


SS SaiGanesh Sakthivel Syncfusion Team May 6, 2020 01:13 PM UTC

Hi Donjet, 
 
Thank you for the update. 
 
We have checked the reported query change selected dates color in SfCalendar based on condition from our end. We regret to inform you that as per implementation of SfCalendar, the month cell loaded only allows to customize the month cell and customizing selectedDate color is not possible. 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel

Loader.
Up arrow icon