search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to set color multiple selection in DayPilot Month

Asked by Anni Tay
10 years ago.

Hi,
When I use DayPilot Calendar, the background color of multiple selection is Blue by default.
How to set color for multiple selection in DayPilot Month?

Answer posted by Dan Letecky [DayPilot]
10 years ago.

You can use CellSelectColor property to specify custom cell selection color.

This is one of the few elements that can't be styled using the CSS theme. It will be added to the themes soon.

Comment posted by Anni Tay
10 years ago.

Hi..
Thank you for your reply.

CellSelectColor only available in DayPilotCalendar, there's no in DayPilotMonth..

Cell's property that available on DayPilotMonth:
CellHeaderBackColor
CellHeaderFontColor
CellHeaderFontFamily
CellHeaderFontSize
CellHeaderHeight
CellMarginBottom

Any advice?

Comment posted by Dan Letecky [DayPilot]
10 years ago.

In the Month control in CssOnly = "false" mode (legacy) the color is hardcoded (it's set to "#aaaaaa").

When you use CssOnly="true" you can change it using the _shadow and _shadow_inner CSS classes. See also:

http://kb.daypilot.org/77032/list-of-css-classes-used-in-cssonly-mode-month/

Comment posted by Anni Tay
10 years ago.

I'm not using any css class.. so CssOnly = false.. it should be show the gray color when I do selection on the DayPilotMonth (as default color)... but it not show anything when I do the selection...

Comment posted by Anni Tay
10 years ago.

Anyway.. I tried to create another DayPilotMonth.. and it works.. Maybe some properties that I have done for previous DayPilotMonth which is the selection color is disable..

Thank you for your help..

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.