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

Validating User's Input

3 Answers 89 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 21 Feb 2008, 06:00 PM
Hi,

I would like to know the best way to validate the user's input in the Advanced Edit/Input form.  I want to ensure that the start date is before the selected end date for the appointment.  I would also like to ensure that any text boxes that contain recurrence information contain a valid integer value.  I noticed that when the user enters some text in one of these fields the server returns an error. 

Thanks,
-Paul

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Feb 2008, 03:41 PM
Hello Paul,

Thank you for the suggestion. This is a very good idea indeed. We will consider preparing an example using the advanced form to show a way to implement the desired functionality.



All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Trevor
Top achievements
Rank 1
answered on 11 Sep 2008, 08:55 PM
Any update on this? I'd like to validate that the end date is after the start date as well. Any recommended techniques would be appreciated.
0
T. Tsonev
Telerik team
answered on 12 Sep 2008, 03:37 PM
Hi Trevor,

The current version of RadScheduler does not feature integrated validation controls. You can perform basic validation in the AppointmentInsert and AppointmentUpdate events and cancel them if the data is not acceptable. But this does not help with the exceptions that are thrown when, for example, a user enters an invalid number in a numeric field. We have addressed these shortcomings and the Q3 release will handle user input much better and will include validator controls. Until then, the best alternative is to use custom advanced form templates and implement validation in them. We will also update the provided sample templates for the Q3 release, but at the moment we can only provide you rough working versions, if you decide to go this route.

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Paul
Top achievements
Rank 1
Answers by
Peter
Telerik team
Trevor
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or