calendar dates block

4 posts, 1 answers
  1. Teja
    Teja avatar
    15 posts
    Member since:
    Nov 2010

    Posted 07 Mar 2011 Link to this post

    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.

  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 07 Mar 2011 Link to this post

    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!
  3. Teja
    Teja avatar
    15 posts
    Member since:
    Nov 2010

    Posted 07 Mar 2011 Link to this post

    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.

  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 11 Mar 2011 Link to this post

    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!
Back to Top