Hello,
i want to allow that the user of a schedule system may select there own color-combinations for there appointments. When i use CSS cooded by hand it is working, but because i have no idear how many users will register for this calender, i store the background/forecolor in there user Profile. It may come 120 User total, so i don't want the change the CSS and
select
case
statement
all the time
When i just set these color during appointment creating like
e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(rw(
"backcolor"))e.Appointment.ForeColor = System.Drawing.ColorTranslator.FromHtml(rw("fontcolor"))
the colors are correct but i have a background-grafik overlap at the upper border of my appoinment. i guess this is cooming from the oroginal (in my Case Office2007) skin i am using.
This is not the case when i used hard cooded CSS with no background-image defined, then the grafik is gone.
What must i do to remove the grafik, when i set the colors by code behind.
Kind Regards
Martin Gartmann
8 Answers, 1 is accepted
Please, refer to the topic on how to Set different styles for appointments. If you have any questions, please fee free to ask us.
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
this was exactly what i was using with success.
Because i have a undefined number of users i want that they are able to choose there own colors, instead of selecting one of number of preset CSS Style.
If i set appointment fore/backcolor i can nearly archive this, but the standard background-image is still there !!
you can see it live at http://www.tdisdi.de/event/default.aspx
I simply want to remove the Standard background grafic from the office 2007 Style.
Have a good time
Martin
I got it. You can clear the default background image with the following selector:
.RadScheduler_Office2007 .rsWrap .rsApt .rsAptWrap |
{ |
background: none; |
} |
Should you have further questions, please let us know.
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks, your support and documentation is great.
The solution from Peter is working.
Simple place his code in a .css file and load it in your .aspx
It will overwrite the predifined background for your skin.
I have used this also in masterpage with success.
Kind regards
Martin Gartmann
Thanks again...
It is true that the "Prometheus" RadControls contain the embedded CSS and images. This decision has been made to allow simple integration of RadControls with any project by simply adding the Telerik.Web.UI.dll to your project (and removing the /RadControls directory).
Nevertheless, it isn't necessary to add the styles, listed below, to the RadScheduler CSS file - you could simply add them to your page. There are two possible ways to do that:
- adding a <style> block to your page, e.g.:
<style type="text/css"> .RadScheduler_Office2007 .rsWrap .rsApt .rsAptWrap { background: none; } </style> - adding an external stylesheet to the <head> of your page:
<head> [...] <link rel="stylesheet" type="text/css" href="myStyles.css" /> [...] </head>
... and creating a CSS file on your server, named myStyles.css, containing these lines:
.RadScheduler_Office2007 .rsWrap .rsApt .rsAptWrap { background: none; }
I hope that this information was useful enough. Let us know if further questions arise.
All the best,
Alexander
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center