
If
e.Day.
Date
>= startDate
AndAlso
e.Day.
Date
<= endDate
Then
e.Cell.Attributes.Add(
"class"
,
"singleItem"
)
End
If
The default text color is orange.
The CSS class contains only the line "color: # ff0000"
When I put my cursor on the figure is red "# ff0000", my figure back to the color orange. How can he not remove my css class that I added in my event DayRender?
7 Answers, 1 is accepted

Try to add the CSS like below.
CSS:
.singleItem a
{
color
:
#ff0000
!important
;
}
Thanks,
Shinu.

Moreover, it is anticipated that my CSS file (a theme) is placed before RadCalendar CSS.
I would suggest you to review the following online example which demonstrates similar scenario. Test it on your side and verify if this helps.
http://demos.telerik.com/aspnet-ajax/calendar/examples/programming/customdaycellrendering/defaultcs.aspx
Regards,
Maria Ilieva
the Telerik team

By cons, you have an idea for the text. It must be the color of text in a CSS file, because in my project, I use the themes. Depending on the theme that the person chosen, one of my stylesheets will come assigned text color of the calendar.
I'm not completely sure if I correctly understand your requirement and the exact functionality you need to achieve. Please provide some more information on your scenario and the look you want to achieve so we could provide more to-the-point approach.
Greetings,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

But I'll try to explain more clearly.
In my project, I use the themes that we can create in Visual Studio "App_Themes.
I have a file in my MasterPage RadCalendar. In the event DayRender calendar, add a css class in my element e.Cell "which is named singleItem.
On loading my Default.aspx page on the event PreInit, I apply a theme to my page "Page.Theme.
According to implement the theme on my Default.aspx page, the css file is different from one theme to another. Example: Winter theme, it ensures that the class singleItem the figure is blue. The theme of the Summer's green figure.
Until now everything works but when I pass my cursor over a figure of the theme color and then I remove my cursor as I lose the color sets.
Your example works on the background of "e.Cell" but he was in the code and hardcode does not work with a theme.
There is surely a piece of javascript code on your side making sure that on over a number he removes another css class that have been added dynamically.
It will be best if you could open a regular support ticket and send us runnable version of your application. Thus we will be able to see the exact structure of your custom skin and do our best to provide proper solution.
All the best,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.