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

selectedDay styles for RadCalendar

4 Answers 112 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Lisa Simmons
Top achievements
Rank 1
Lisa Simmons asked on 19 Oct 2010, 04:56 PM
i have a RadCalenar with different background colors for different days. When the day is selected, the original background color is replaced by the selectedDay style. how can i keep the original background color when the day is selected?

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Oct 2010, 05:49 PM
Hi Lisa,

The RadCalendar controls come with a set of predefined styles, which are specified by the styles in the current skin CSS classes. You can use rcSelected Css class which applies style to the selected dates.Please review the help article below for more information:
Styles

Greetings,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lisa Simmons
Top achievements
Rank 1
answered on 19 Oct 2010, 06:07 PM
the problem I am having with the rcSelected class is that if my background on a day is blue or red, when i select it, it will change the background to blank color. but I would like to retain the original day's background color. my calendar days have at least 2-3 different colors. so changing the rcSelected  class only allows me to change background colors to one color, not do the different colors that i need. is there a way that this could be removed altogether?
0
Accepted
Pavlina
Telerik team
answered on 21 Oct 2010, 12:29 PM
Hi Lisa,

To achieve your goal I suggest that you use SelectedDayStyle-CssClass="MyClass" in the RadCalendar tag and set your own class which will be the same as the default DayStyle class. Then add the desired days to the Special Days collection of the calendar and assign them appropriate templates:
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/specialdays/defaultcs.aspx

Let us know if these directions are helpful.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lisa Simmons
Top achievements
Rank 1
answered on 21 Oct 2010, 03:57 PM
thanks, you directions are very helpful. should solve my issue. thankx.
Tags
Calendar
Asked by
Lisa Simmons
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Lisa Simmons
Top achievements
Rank 1
Share this question
or