This is a migrated thread and some comments may be shown as answers.

Changing background color of previous/next month cells

1 Answer 65 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 25 Mar 2015, 04:43 PM
I can see that there is a way to get the color through `DateCellBackgroundColorDisabled` (I'm using Xamarin for android here) but not set it. Is there a setter somewhere? If not what would be the simplest way to achieve it?

Help will be greatly appreciated,
Alex. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Antony Jekov
Telerik team
answered on 26 Mar 2015, 09:01 AM
Hello Alex,

Thank you for contacting the Android team.

I can see the properties are being mapped as read-only, which is not intended. I will make sure this is logged and checked. In the meantime, you can use the currently available method like so:
calendarView.Adapter.SetDateCellBackgroundColor(Android.Graphics.Color.PaleVioletRed, Android.Graphics.Color.Purple);

I hope this is helpful. Please let me know if you need something else regarding the cells styling. Thank you for reporting this, so we can make sure the mappings are correct.

Thank you for your time and all best!

Regards,
Antony Jekov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Calendar
Asked by
Alex
Top achievements
Rank 1
Answers by
Antony Jekov
Telerik team
Share this question
or