I have expanded the "isSlotFree" function to work correctly when you use the 'Month' view in RadScheduler. The way it's coded now only works for 'Day' or 'Week' view styles:
function
isSlotFree(targetSlot, appointment)
{
var startTime = targetSlot.get_startTime();
var scheduler = $find("<%= RadScheduler1.ClientID %>");
var currentView = scheduler.get_selectedView();
if(currentView==2)
// concatenate new startDate with appointments time portion if in MONTHLY view only
{
var originalStartTime = appointment.get_start();
var newHour = originalStartTime.getHours();
var newMinute = originalStartTime.getMinutes();
var newSecond = originalStartTime.getSeconds();
startTime.setHours(newHour);
startTime.setMinutes(newMinute);
startTime.setSeconds(newSecond);
var endTime = new Date(startTime.getTime() + appointment._getDuration());
}
else
{
var endTime = new Date(startTime.getTime() + appointment._getDuration());
}
return overlapsWithAnotherAppointment(appointment, startTime, endTime);
}