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

how to highlight in weekview

1 Answer 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ganesh
Top achievements
Rank 2
ganesh asked on 13 Jan 2011, 01:59 PM
hi team,

i want to highlight the current date in weekview... as like outlook calendar ..


is it possible?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Sep 2012, 10:13 AM
Hi Ganesh,

Try the following code snippet to achieve your scenario.

CSS:
<style type="text/css">
   .highlight 
        
            background: red !important
        
</style>

C#:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
    {
        if (RadScheduler1.SelectedView == SchedulerViewType.WeekView)
        {
            if (DateTime.Compare(e.TimeSlot.Start.Date, DateTime.Today) == 0)
            {
                e.TimeSlot.CssClass = "highlight";
            }
        }
    }

Hope this helps.

Regards,
Princy.
Tags
Scheduler
Asked by
ganesh
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or