Calendar does not remove CssClass Hover Day

8 posts, 0 answers
  1. Maxime Bellemare
    Maxime Bellemare avatar
    17 posts
    Member since:
    Jun 2010

    Posted 04 Apr 2011 Link to this post

    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?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Apr 2011 Link to this post

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

    Thanks,
    Shinu.
  3. Maxime Bellemare
    Maxime Bellemare avatar
    17 posts
    Member since:
    Jun 2010

    Posted 05 Apr 2011 Link to this post

    It does not work.

    Moreover, it is anticipated that my CSS file (a theme) is placed before RadCalendar CSS.
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Apr 2011 Link to this post

    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
  5. Maxime Bellemare
    Maxime Bellemare avatar
    17 posts
    Member since:
    Jun 2010

    Posted 13 Apr 2011 Link to this post

    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.
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Apr 2011 Link to this post

    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.

  7. Maxime Bellemare
    Maxime Bellemare avatar
    17 posts
    Member since:
    Jun 2010

    Posted 21 Apr 2011 Link to this post

    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.
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Apr 2011 Link to this post

    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.

Back to Top