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

Avoid Selection of Weekend and Holiday Dates.

6 Answers 294 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Lok
Top achievements
Rank 1
Lok asked on 31 Aug 2010, 07:51 PM
Hi,
I'm new to RAD Controls and I was wondering if there is a way to avoid selection of weekend and a list of holiday dates from the the RAD Calendar while using a RadDatePicker?
Thanks,
Lok.

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Sep 2010, 06:16 AM
Hello,

The following code library demonstrates how you can disable calendar days (e.g. weekend days) in the calendar component of RadDatePicker.
Disabling calendar days

Hope this helps,


Regards,
Shinu.
0
Lok
Top achievements
Rank 1
answered on 01 Sep 2010, 04:12 PM
Thanks Shinu,
I actually figured that out yesterday after exploring a few things :)
It wasn't that tough. I really appreciate your quick response and thanks once again!!!

Regards,
Lok.
0
Katte
Top achievements
Rank 1
answered on 09 Sep 2010, 09:25 AM
I have tried the code samples. It disable the week ends only for the current month. When we goto next month or pervious month, this disable functionality doesn't work. Kindly give me a solution.

Thanks
Katte
0
Shinu
Top achievements
Rank 2
answered on 13 Sep 2010, 11:42 AM
Hello Katte,


You need to handle client-side OnDayRender events of the calendar control for disabling the days on client-side navigation to a different month view.

Have you added the client side code for disabling the days, as shown in the code library?


-Shinu.
0
illumination
Top achievements
Rank 2
answered on 11 May 2011, 08:19 PM
Hi Shinu.
I have done as you instructed for the weekend but now I have to also disable the holidays that resides in the Holiday Table. I need to be able to read dates on the table and apply it in the calendar. I also need to incorporate this process with http://www.telerik.com/community/forums/aspnet-ajax/calendar/two-raddatepickers.aspx 
Thank you.
0
Pavlina
Telerik team
answered on 17 May 2011, 09:31 AM
Hi,

This can be easily achieved by using special days collection or the DayRender event handler. If the user is the one deciding which day would that be, you can make a case check for the e.Day.Day and set the choice as special day.

Hope this helps.

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Calendar
Asked by
Lok
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Lok
Top achievements
Rank 1
Katte
Top achievements
Rank 1
illumination
Top achievements
Rank 2
Pavlina
Telerik team
Share this question
or