Don't change color when tapped

How can i do this ? When i tap the date i dont want the color of the cell to change, i just want it to call the TapCommand.
Thanks in advance.

3 Replies

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

Hi Donjet, 
 
Thank you for the update. 
 
We have checked the reported query “Don’t change the color when cell tapped” from our end. We would like to inform you that you can achieved your requirement by setting the DateSelectionColor property into transparent in the MonthViewSettings. Please refer to the following Code snippet for your reference. 
 
Code Snippet 
<calendar:SfCalendar.MonthViewSettings> 
    <calendar:MonthViewSettings SelectedDayTextColor="red" 
                                DateSelectionColor="Transparent" 
                                SelectionShape="Circle"  /> 
</calendar:SfCalendar.MonthViewSettings> 
 
We have attached the sample in the following Link 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel


DS Donjet Salihi replied to SaiGanesh Sakthivel May 6, 2020 04:20 PM UTC

Hi Donjet, 
 
Thank you for the update. 
 
We have checked the reported query “Don’t change the color when cell tapped” from our end. We would like to inform you that you can achieved your requirement by setting the DateSelectionColor property into transparent in the MonthViewSettings. Please refer to the following Code snippet for your reference. 
 
Code Snippet 
<calendar:SfCalendar.MonthViewSettings> 
    <calendar:MonthViewSettings SelectedDayTextColor="red" 
                                DateSelectionColor="Transparent" 
                                SelectionShape="Circle"  /> 
calendar:SfCalendar.MonthViewSettings> 
 
We have attached the sample in the following Link 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel

Hmm, no it didn't work. I have binded the DateSelectionColor when i show the calendar like this:

 




Now when i want to tap the selected dates i dont want them to lose the color, since i dont really need them to get deselected i just need the tapcommand to be called for that specific date.

Thanks in advance


SS SaiGanesh Sakthivel Syncfusion Team May 7, 2020 01:31 PM UTC

Hi Donjet, 
 
Thank you for the update. 
 
We have checked the reported query “Don’t change the color when cell tapped” from our end. We regret to inform you that as per implementation of SfCalendar, the multi Selection date will be deselected when the already selected date cell is tapped. 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel

Loader.
Up arrow icon