Setting background color from css

2 posts, 0 answers
  1. Roger
    Roger avatar
    1 posts
    Member since:
    Apr 2014

    Posted 09 Apr 2014 Link to this post

    Hi there,
    I am using the Scheduler for Ajax.

    I am trying to set the background-color for appointments via css.
    The intention is that the appointment is populated from a DataView which may contain the field Style. If present then the style will be added to the cssStyle for the appointment. This will then be converted to a color via css. I don't want to have to set the background-color within the code behind, since different colors may be needed depending on what view is used, and I want this to be configurable without changing source code.

    I know that I can get rid of the default background using 
    .RadScheduler .rsAptContent,   
        .RadScheduler .rsAptIn,   
        .RadScheduler .rsAptMid,   
        .RadScheduler .rsAptOut   
            background-image: none !important;  
            background-color : transparent !important;

    but I would prefer to not have to fight against the WebResource.axd
    Is there any way to do this?
    I am currently using the 2013 Q3 release.



  2. Magdalena
    Magdalena avatar
    487 posts

    Posted 10 Apr 2014 Link to this post

    Hello Roger,

    Please, try to apply the CSS that you have provided after removing the both "!important" and add a "html" before every used selector. For example instead of ".RadScheduler .rsAptIn" should be "html .RadScheduler .rsAptIn".


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top