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

How to I get the current date to be highlighted

1 Answer 327 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 21 Sep 2010, 05:54 PM

I know this is so easy but I can't find the switch to highlight the current date in a month view.  I have a radscheduler on my page and have set my code to this:

radSchAppointments.SelectedDate = DateTime.Now;

I also have the scheduler defaulting to a month view.  I would expect the code above to highlight the current date in the calendar view but it doesn't do anything.

How do I get the current date to be highlighted so users can easily see today's date?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Sep 2010, 06:18 AM
Hello Richard,


In Month View the Today Cell has the rsTodayCell class applied to it. So changing the style of this cell is possible with the following CSS style:
<style type="text/css">
    div.RadScheduler_Default .rsMonthView .rsTodayCell
    {
        background-color: #CCFF00;
        color: #000;
        border: 1px solid #000;
    }
</style>


Another method is, control the style for a given time slot from code behind using the approach from this kb article.
Setting special days or time slots in RadScheduler


-Shinu.
Tags
Scheduler
Asked by
Richard
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or