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

Setting background color from css

1 Answer 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 10 Apr 2014, 02:36 AM
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.

regards

Roger



1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 10 Apr 2014, 08:36 AM
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".

Regards,
Magdalena
Telerik
 

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.

 
Tags
Scheduler
Asked by
Roger
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Share this question
or