icilink.com
Top achievements
Rank 2
icilink.com
asked on 01 Jul 2008, 10:21 PM
I notice that when trying to enter a appt on your demo of the scheduler that if you have the end date (7/1/2008 8:00AM) prior to the start date (7/1/2008 9:00AM) your page blows up, is there anyway to trap this event in the advance edit template and show a reasonable message to the user? or anyother way of adding date validation into the event creation?
thx
Stuart
thx
Stuart
5 Answers, 1 is accepted
0
Hi,
(Same reply as in the support ticket)
You can perform additional validation in the AppointmentInsert and AppointmentUpdate server-side events. For example:
Canceling the event will return the user to the advanced template.
Best wishes,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
(Same reply as in the support ticket)
You can perform additional validation in the AppointmentInsert and AppointmentUpdate server-side events. For example:
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) |
{ |
if (e.Appointment.Start > e.Appointment.End) |
{ |
e.Cancel = true; |
} |
} |
Canceling the event will return the user to the advanced template.
Best wishes,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
debbie f
Top achievements
Rank 1
answered on 18 Nov 2008, 08:48 PM
I am implementing an advancededit/insert template & have used the suggestion to cancel the event if my business rules are violated based on the new user input. The event is canceled, which is great. However, the edit/insert form now shows empty so the user no longer has any idea what they had entered. Is there a way to rebind the template during this event so that the user can see why their data failed validation?
0
Hi debbie,
Which version do you use. The latest version from Q3 2008 does not have this problem. Pelase, try with it and let us know how it goes.
Cheers,
Peter
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Which version do you use. The latest version from Q3 2008 does not have this problem. Pelase, try with it and let us know how it goes.
Cheers,
Peter
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
debbie f
Top achievements
Rank 1
answered on 20 Nov 2008, 03:43 PM
I am using Q3 controls, so there must be something else. I can submit a ticket if need be.
0
Yes, please open a ticket and send us a simple demo project of the problem.
Best wishes,
Peter
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.