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

Setting colors of appointments and such

1 Answer 116 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bruce St.Clair
Top achievements
Rank 2
Bruce St.Clair asked on 05 Aug 2008, 04:03 PM
I am trying to get the colors the way I want on the appointment itself.

In the code behind I set the following

apt.BorderColor = color;

apt.BackColor =

Color.White;

apt.BorderStyle = System.Web.UI.WebControls.

BorderStyle.Solid;

But take a look at the link below and see what my problem is.  Also want to know if I can increase the size of the border.

Also if I make the 'header' of the appointment a solid colr can I move the subject down under the color coding.


http://update.timsforaudiology.com/bruce/Schedule.png

1 Answer, 1 is accepted

Sort by
0
Jean-Luc
Top achievements
Rank 1
answered on 05 Aug 2008, 06:18 PM
Hi!
The best way I found to play with the appearance of the appointments is the class css

For border you can use this tag:
        .rsApt.Class0 .rsAptInner  
        {  
            border-top: 3px solid  #CD0000;  
              
        }  
        .rsApt.Class0 .rsAptWrap  
        {  
            border-left: 3px solid  #CD0000;  
            border-right: 3px solid  #CD0000;  
        }  
        .rsApt.Class0 .rsAptBottom  
        {  
            border-bottom: 3px solid  #CD0000;  
        } 

  and for backcolor:
 .rsApt.class1 .rsAptInner,  
 .rsApt.class1 .rsAptWrap  
 {  
     background: #CCAC92;  
 } 


For the blue line, you can use a code analysis (firebug example) to find the name of tag and thus overload class css for change color

After you just need apply css to apt:
Private Sub RadScheduler_AppointmentCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadScheduler1.AppointmentCreated  
{  
        e.Appointment.CssClass = "class0 class1" 

Good luck
Tags
Scheduler
Asked by
Bruce St.Clair
Top achievements
Rank 2
Answers by
Jean-Luc
Top achievements
Rank 1
Share this question
or