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

OnDateSelected fires after OnDateSelecting returns false

1 Answer 57 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Martine
Top achievements
Rank 2
Martine asked on 15 Jan 2008, 04:06 PM
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,
Martine.

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel
Telerik team
answered on 18 Jan 2008, 09:04 AM
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.

Regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
Martine
Top achievements
Rank 2
Answers by
Pavel
Telerik team
Share this question
or