or
$(document).ready(function () {
$(window).scroll(function () {
var comboBox = $find("RadComboBox1");
if (comboBox.DropDownVisible)
comboBox.hideDropDown();
});
});

function markCurrentHour() { var currentHour = (new Date()).format("HH"); var currentMinutes = (new Date()).format("mm"); if (+currentHour < 13) { currentHour += "AM"; } else { currentHour = (+currentHour - 12) + "PM"; } var verticalHeaderTables = $(".rsVerticalHeaderTable"); // Each view type has a table (day view, week view, etc.) if (verticalHeaderTables) { $.each(verticalHeaderTables, function (index, item) { var hourCells = $(item).find(".rsAmPm"); // 24 cells with the hours (12AM, 1AM, 2AM, etc.) $.each(hourCells, function (index, item) { if (item.parentNode.innerText.trim() == currentHour) { // Current hour cell if (+currentMinutes < 30) { // First 30 minutes cell item.parentNode.parentNode.style.borderBottomColor = "lightgreen"; item.parentNode.parentNode.style.borderBottomWidth = "5px"; } else { // Next 30 minutes cell $(item.parentNode.parentNode.parentNode).next().children()[0].style.borderBottomColor = "lightgreen"; $(item.parentNode.parentNode.parentNode).next().children()[0].style.borderBottomWidth = "5px"; } } }); }); }}function onClientAppointmentsPopulated() { markCurrentHour();}