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

Background Image of cells

1 Answer 65 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 31 Mar 2010, 01:46 PM
Hi,

Is that posible to set a background image for a cell?
For example 1st Jan, if i want to set a background image for it, how can i do that?

Regards,
Iry

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Apr 2010, 08:49 AM

Hello Iry,

You can attach the style for particular cell from code behind in the TimeSlotCreated event as shown below.

C#:

 
    protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)  
    {  
        DateTime dt = new DateTime(2010, 1, 1);  
        if (e.TimeSlot.Start.Date == dt.Date)  
        {  
            e.TimeSlot.CssClass = "MyClass";  
        }  
    } 

CSS:

 
<style type="text/css">  
    .MyClass  
    {  
        background-imageurl(../Images/Special.jpg) !important;  
    }  
</style> 

-Shinu.

Tags
Scheduler
Asked by
Iry Lee
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or