Posted 12 Feb 2013 Link to this post
Posted 13 Feb 2013 Link to this post
<script type=
"text/javascript"
>
function
pageLoad() {
$telerik.$(
".rsHorizontalHeaderTable th"
).each(
(index, item) {
var
childNode = item.childNodes[0];
if
(childNode !=
null
) {
today =
new
Date();
today.setHours(0); today.setMinutes(0); today.setSeconds(0);
(childNode.href !=
hrefDate = childNode.href.split(
'#'
)[1];
date =
Date(hrefDate);
date.setHours(0); date.setMinutes(0); date.setSeconds(0);
(date.toDateString() == today.toDateString()) {
item.style.backgroundImage =
"none"
;
item.style.backgroundColor =
"yellow"
}
else
{
innerText = childNode.innerHTML.trim();
Date(innerText);
});
</script>
Posted 16 Nov 2014 in reply to Princy Link to this post
Posted 20 Nov 2014 Link to this post
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Posted 20 Nov 2014 in reply to Boyan Dimitrov Link to this post
Posted 24 Nov 2014 Link to this post
protected
void
RadScheduler1_TimeSlotCreated(
object
sender, TimeSlotCreatedEventArgs e)
(RadScheduler1.SelectedView == SchedulerViewType.WeekView && e.TimeSlot.Start.Date == DateTime.Now.Date)
e.TimeSlot.CssClass =
"todaysDate"
Posted 24 Nov 2014 in reply to Boyan Dimitrov Link to this post
Posted 26 Nov 2014 Link to this post
scheduler = $find(
"<%= RadScheduler1.ClientID %>"
);
(scheduler.get_selectedView() == 1) {
timeSlotsDOM = $telerik.$($telerik.$(
".rsContentTable tr td"
));
for
(
i = 0; i < timeSlotsDOM.length; i++) {
DOMElement = timeSlotsDOM[i];
date = $find(
"RadScheduler1"
).get_activeModel().getTimeSlotFromDomElement(DOMElement).get_startTime().toDateString();
todayDate =
Date().toDateString();
(date == todayDate) {
$telerik.$(DOMElement).addClass(
"todaysClass"
.todaysClass {
background-color
:
red