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

Custom Validator

2 Answers 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Derek Feng
Top achievements
Rank 1
Derek Feng asked on 26 May 2010, 04:48 PM
I added a custom control, a text box, to the Advanced form. I also added a CustomValidator for the control with a server side function for the OnServerValidate event.  However, my CustomValidator is totally ignored when the form is submitted.  I noticed that the CustomValidator for the default DurationValidator is called but not my added CustomValidator.
Do I need to add my CustomValidator to the Scheduler ValidatorGroup? If the answer is yest, then how should I add my CustomValidator to the scheduler's ValidatorGroup?
Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 28 May 2010, 03:09 PM
Hi Derek Feng,

The InitializeStrings (okay, maybe it does more than the name suggests) is responsible for setting the ValidationGroup on the other validators. Add your validator there and you should be set.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Derek Feng
Top achievements
Rank 1
answered on 28 May 2010, 08:51 PM
That works fine.  Thank you very much.
Tags
Scheduler
Asked by
Derek Feng
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Derek Feng
Top achievements
Rank 1
Share this question
or