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

Calendar does not remove CssClass Hover Day

7 Answers 87 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Maxime Bellemare
Top achievements
Rank 2
Maxime Bellemare asked on 04 Apr 2011, 08:36 PM
In the event DayRender on certain days of the month I add a CSS class on the cell.

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

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Apr 2011, 11:34 AM
Hello,
Try to add the CSS like below.
CSS:
.singleItem a
    {
        color:#ff0000 !important ;
    }

Thanks,
Shinu.
0
Maxime Bellemare
Top achievements
Rank 2
answered on 05 Apr 2011, 03:21 PM
It does not work.

Moreover, it is anticipated that my CSS file (a theme) is placed before RadCalendar CSS.
0
Maria Ilieva
Telerik team
answered on 07 Apr 2011, 03:38 PM
Hello Claude,

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

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
Maxime Bellemare
Top achievements
Rank 2
answered on 13 Apr 2011, 09:12 PM
Sorry for my late reply, I checked your post. For cons, the code is submitted by the DropDownList background-color.

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.
0
Maria Ilieva
Telerik team
answered on 19 Apr 2011, 02:43 PM
Hello Claude,

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.

0
Maxime Bellemare
Top achievements
Rank 2
answered on 21 Apr 2011, 06:10 PM
I'm not in the possibility of providing the current project I work on.

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.
0
Maria Ilieva
Telerik team
answered on 27 Apr 2011, 04:06 PM
Hi Claude,

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.

Tags
Calendar
Asked by
Maxime Bellemare
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Maxime Bellemare
Top achievements
Rank 2
Maria Ilieva
Telerik team
Share this question
or