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

Appointment colours

2 Answers 61 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 13 Oct 2010, 12:39 PM
I'm playing with the AdvancedForm template sample code and am delighted with the improvements to the skin that allow manually changed background colours to show through the appointment image to allow them the have that 3D looking effect.

Playing with code, however, I note that if I set the ForeColor property of e.Appointment there is no change to the visual appearance of the appointment. A little poking around suggests that this colour is being set by the rsAptSubject CSS class and this has a higher precedence than the value assigned to the ForeColor property. I know that the ForeColor is being applied but overridden 'cos if I use client-side tools to 'switch off' the colour setting of this particular class the visual appearance of the appointment changes to use the set ForeColor value.

Maybe I've misunderstood, but I'd've thought that the ForeColor property's value would have overridden the CSS style in this instance.

-- 
Stuart

2 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 14 Oct 2010, 01:25 PM
Hi Stuart,

I guess you are using the project for "Customizing the Advanced Form" which I gave you. Well, there we are using a CSS called rsAptSubject:

.RadScheduler .rsAptSubject
       {
           text-align: left;
           padding: 4px 0 1px;
           margin: 0 0 3px;
           font-size: 12px;
           font-weight: bold;
           color: #369;
           height: 17px;
           border-bottom: 1px solid #99DEFD;
           width: 100%;
       }

Yes, you are right that this Css Class is the reason why ForeColor property seems not working. But please have in mind that this is our custom Css class which is not provided by default.

So you can think of the ForeColor property and rsAptSubject as two alternative ways to set the color of the Subject.

Greetings,
Veronica Milcheva
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
Stuart Hemming
Top achievements
Rank 2
answered on 15 Oct 2010, 01:09 PM
Thanks Veronica.

Some days I'm so dim I shouldn't be allowed out of the house on my own!

-- 
Stuart
Tags
Scheduler
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or