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

[Solved] Preventing appointment entry for dates in the past

2 Answers 144 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Charles Henderson
Top achievements
Rank 1
Charles Henderson asked on 27 Jan 2010, 07:24 PM
I am implementing the RadScheduler to manage scheduling data from a Dynamics CRM system.  One of the requirements is that the user not be able to enter an appointment for a date prior to 12 am for the current day.  I have found the FormCreating server side event and can cancel the insert, however, I've not been able to figure out how to tell the user why the appointment isn't created.  I'm a Winforms developer that has been asked to deal with this issue and I'll admit my javascript/aspx skills are rusty.  I've seen plenty of examples where javascript is registered from code behind, but these are all associated with an OnClick event.  I don't have a client side OnClientFormCreating that I can use to validate this on the client side.

Is there a native way to handle this through a property on the scheduler or how would I best achieve this?  I'd love to be able to integrate RadWindow manager and use the alert dialog.

Thanks.
Chuck

2 Answers, 1 is accepted

Sort by
0
Charles Henderson
Top achievements
Rank 1
answered on 28 Jan 2010, 12:26 AM
I figured out a way that works for me for right now, although I'd be interested in alternatives.

 The RadScheduler offers a client side onTimeSlotClicked() method.  This method doesn’t offer any way to cancel the post, but I can use it to send an alert.  I then retest in the  FormCreating Event on the code behind to cancel the event.

0
Peter
Telerik team
answered on 28 Jan 2010, 04:34 PM
Hi Charles,

Please, see the following kb article for alternative solution:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/setting-special-days-or-time-slots-in-radscheduler.aspx


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Charles Henderson
Top achievements
Rank 1
Answers by
Charles Henderson
Top achievements
Rank 1
Peter
Telerik team
Share this question
or