OnDateSelected fires after OnDateSelecting returns false

2 posts, 1 answers
  1. Martine
    Martine avatar
    6 posts
    Member since:
    Nov 2006

    Posted 15 Jan 2008 Link to this post

    Dear reader,

    I used an example I found here in the code library to make it impossible to select single days in RadCalendar, weeks only. I used exactly the same code with RadCalendar Promotheus and encountered the following problem:  OnDateSelected still fires, even though OnDateSelecting returns false. The code works fine with the "normal" Calendar-control in RadControls for ASP.NET. Is this a bug or am I doing something wrong?

    Kind regards,
  2. Answer
    Pavel avatar
    904 posts

    Posted 18 Jan 2008 Link to this post

    Hi Martine,

    In Prometheus in order to cancel an event you need the following: args.set_cancel(!returnValue);
    I have attached a sample application to better illustrate the approach.

    Let me know if you have more questions.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top