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

Highlight the current date

5 Answers 300 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 31 Aug 2010, 05:41 AM
Is there a way to highlight the current date for the user, regardless of Day, Week, or Month view? I saw a previous thread on how to do this for the Month view by overriding the style of rsTodayCell but that doesn't do anything for Day or Week view.

My initial thought was that highlighting of current date was a pretty standard requirement for a schedule/calendar control, so I am assuming there is a simple way to do this.

Thanks for the help!
Seth

5 Answers, 1 is accepted

Sort by
0
Laslo
Top achievements
Rank 1
answered on 31 Aug 2010, 09:11 AM
Hi

Also I would like that adding  a different style for  a Sunday and Saturday in scheduler will be also nice ;)
0
Veronica
Telerik team
answered on 31 Aug 2010, 09:56 AM
Hi Seth,

Except the known way to highlight the MonthView today cell:

.rsTodayCell
       {
           background: gray !important;
       }

there is no easy way to highlight it in other views. However you can always navigate to current date via  "today" link and you can see it highlighted in the Calendar.

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
wolf
Top achievements
Rank 1
answered on 22 Mar 2011, 05:14 PM
is it possible to hightlight current date's timeslot header like outlook, not only cell itself?
0
Veronica
Telerik team
answered on 23 Mar 2011, 04:49 PM
Hi Sean,

Our RadScheduler has no borders around timeslot headers and that's why there is no way to set color to the timeslot header of today's date. 

All the best,
Veronica Milcheva
the Telerik team
0
Stephan
Top achievements
Rank 1
answered on 21 Jun 2012, 10:53 PM
Highlighting a day's header in the month and week view is quite simple:

To set the header in blue color, do like that:

var today = new Date();
function pad2(number) { return (number < 10 ? '0' : '') + number }
var todayStr = today.getFullYear() + "-" + pad2(today.getMonth() + 1) + "-" + pad2(today.getDate());
$telerik.$(".rsDateHeader[href='#" + todayStr + "']").css("color""blue");

The nice thing is that it works in any UI culture.

Stephan
Tags
Scheduler
Asked by
Seth
Top achievements
Rank 1
Answers by
Laslo
Top achievements
Rank 1
Veronica
Telerik team
wolf
Top achievements
Rank 1
Stephan
Top achievements
Rank 1
Share this question
or