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

Disable RadScheduler for a selected date.

1 Answer 112 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Teja
Top achievements
Rank 1
Teja asked on 08 Mar 2011, 09:04 AM
Hi.

I am using Telerik RadScheduler. I want to disable or rather make radscheduler invisible for a selected date.

It means if i select a date the rad scheduler calendar, the scheduler should not be visible or at least I should get a pop-up message saying that the date is invalid.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Mar 2011, 01:37 PM
Hello Teja,

You can try the following approach to achieve your scenario.
  • get the reference of the RadCalender which is inside RadSheduler.
  • attatch add_dateClick event.
  • Handle the event there.
Here is the sample code.
javascript:
function pageLoad()
{
    var schedulerPopupCalendar = $find('<%= RadScheduler1.ClientID + "_SelectedDateCalendar" %>');
    schedulerPopupCalendar.add_dateClick(OnDateSelecting);
}
function OnDateSelecting(sender, args)
 {
 //check the selected date and show the alert
}

The RadCalendar client object can be further operated with by using its client-side API.
Thanks,
Shinu.
Tags
Scheduler
Asked by
Teja
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or