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

[Solved] Required validator

4 Answers 129 Views
Editor
This is a migrated thread and some comments may be shown as answers.
JK
Top achievements
Rank 1
JK asked on 19 May 2008, 03:12 PM
Hi,

I have two rad editors on a form and both need to have some text to be added.  Can you set the editors to make them required feilds?

If so how?

thanks,

JK

4 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 19 May 2008, 03:33 PM
Hello JK,

Please, see and test the following live example which could be helpful for your scenario: Validators.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
JK
Top achievements
Rank 1
answered on 19 May 2008, 04:08 PM
D'oh!

Sorry been working too many long hours!  Did not see the control in the list when I added the Validator.

Thanks,

JK
0
Shellie
Top achievements
Rank 1
answered on 06 May 2009, 09:54 PM
When using your validator demo in Firefox and IE we noticed the if a user were to enter line breaks and/or spaces (except IE) without adding any additional text, the required validator would not fire.  We want to prevent our users from submitting blank messages by stripping off those types of characters off the front (&nbsp;, <p>, <br/>).
0
Rumen
Telerik team
answered on 11 May 2009, 08:35 AM
Hello Shellie,

The &nbsp; entity and <p> and <br/> tags are valid HTML content and we think that the observed validator behavior is the expected one.
Our suggestion is to implement your own logic based on Custom Validator. You can see an example with Custom Validator in the Validators example.

Regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
JK
Top achievements
Rank 1
Answers by
Rumen
Telerik team
JK
Top achievements
Rank 1
Shellie
Top achievements
Rank 1
Share this question
or