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

calendar dates block

3 Answers 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Teja
Top achievements
Rank 1
Teja asked on 07 Mar 2011, 11:48 AM
Hi,

I am working on Telerik RadScheduler.

I have different sessions called screening, evaluation, discussions and etc....

So depending upon the dates of the above sessions, I have to highlight the calendar in Radscheduler.
All the other dates other than this should be blocked.

For example:
Screening : 2/23/2011 to 3/29/2011
Evaluation :4/12/2011-4/30/2011
Discussions-1/2/2011-1/5/2011.

All the dates other than this should be blocked and not be highlighted to the user.Is there any way to do it?
These dates are stored in the database by the admin and is reflected to the user.
So please do not give any answer with javascript.
I want code for disabling the calendar dates after retrieving the dates from the database. Whenever the page loads, the calendar should be highlighted with only the dates avaliable in the database and all the other dates should be disabled.
Code snippets as answers as per my requirement would be appreciated instead of redirecting me to any other blog.

3 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 07 Mar 2011, 12:48 PM
Hi Teja,

Please take a look at this KB article for how to make appointments visible in the popup calendar of RadScheduler.

Also you can use this KB article for disabling the timeslots per special dates.

P.S: Please do not open more than one thread per issue.

Regards,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Teja
Top achievements
Rank 1
answered on 08 Mar 2011, 01:41 AM
Yeah...but I want to check the dates from the database and display the dates present in database and block the dates not in the database..in the RadScheduler.

0
Veronica
Telerik team
answered on 11 Mar 2011, 10:15 AM
Hi Teja,

In this case you need to replace the enum in the KB with the dates that come form the database:

private readonly DateTime[] SpecialDays = new DateTime[] { new DateTime(2008, 6, 26), new DateTime(2008, 6, 27) }; 

Kind regards,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Scheduler
Asked by
Teja
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Teja
Top achievements
Rank 1
Share this question
or