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

Background of cells

3 Answers 62 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Iry Lee
Top achievements
Rank 2
Iry Lee asked on 09 Mar 2010, 02:01 PM
is that posible to set a background for a cell?
For example 1st Jan, if i want to set a background for it, how can i do that?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Mar 2010, 12:09 PM

Hello Iry Lee,

You can set the BackColor of TimeSlot in TimeSlotCreated event of scheduler. Checkout the following example.

C#:

 
    protected void RadScheduler2_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)  
    {  
        if (e.TimeSlot.Start.Date == Convert.ToDateTime("01/01/2010"))  
        {  
            e.TimeSlot.CssClass = "MyClass";  
        }  
    } 

And here is the CSS that I tried:

 
    <style type="text/css">  
        .MyClass  
        {  
            background-color:Silver;              
        }  
    </style> 

-Shinu.

0
Iry Lee
Top achievements
Rank 2
answered on 10 Mar 2010, 12:35 PM
Thanks for your reply, Shinu.
Actually i wanted to set background image, for some of the all day appointment.
Is it posible to do that?
(I'm using VB)

0
Iry Lee
Top achievements
Rank 2
answered on 19 Mar 2010, 11:05 AM
anyone know how to set background image for a particular day?
thanks for your help in advance
Tags
Scheduler
Asked by
Iry Lee
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Iry Lee
Top achievements
Rank 2
Share this question
or