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

Opcaity in Calendar BlackoutCellTemplates

Hi. I'm configuring the template of the BlackoutCells and it seems its opacity isn't 1. I will need to set it to 1 since my view has an image background and it is not looking good :)
Is there any way to do that?

Thanks,
Pablo

4 Replies

VV Vignesh V Syncfusion Team July 22, 2013 12:36 PM UTC

Hi Pablo,

We have prepared a sample to achieve your requirement. In the attached sample, opacity value for the blackedoutcell is set to 1 through BlackedOutCellTemplate Property. The Visibility may vary according to the background image, for better visibility of the blacked out dates the Foreground color can be varied. 

Please find the sample in below link,


For further concerns, please modify the sample to reproduce the issue, so that we can provide you accurate solution.

Please let us know if you have any queries,

Regards,
Vignesh V


PA Pablo July 23, 2013 03:31 PM UTC

Hi Vignesh,

Sorry for the confusion here. When I mean BlackOutCells I mean the cells that are not part of the displayed month. There's no way to have a different template for them, is there?

Thanks,
Pablo


VV Vignesh V Syncfusion Team July 24, 2013 12:59 PM UTC

Hi Pablo,

We have prepared a sample to achieve your requirement of “Changing opacity to 1 for the dates that are not part of present month”. In the attached sample we have edited the style of ‘CalendarDayButton’ class and the templates are applied using CellTemplate property.

 Please find the sample in below link,

 calendar_opacity.zip

 Please let us know if you have any queries,

Regards,

Vignesh V



PA Pablo July 24, 2013 09:44 PM UTC

Great!

Thanks!

Loader.
Live Chat Icon For mobile
Up arrow icon