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

validation messages position

4 Answers 1301 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 04 Mar 2013, 02:42 PM
Hello again,
1. Can i set the validation messages position ?
I want  the messages to appear not near the control,instead below  the control being validated.
2. Also how can i add more validation rules to one textbox for example ?

3. this attribute validationMessage
="Please enter {0}" the {0} is replaced by the name of the control?
if yes,can i specify a different value(e.g. the value of another control)?

Regards,
Daniel

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 05 Mar 2013, 12:16 PM
Hello Daniel,

1. You can specify where exactly do you want the tooltip to be placed by adding a span with data-for attribute set to the validated input name and a class .k-invalid-msg. More information can be found here.

2. You can add multiple validation rules by adding the appropriate attributes and/or custom validation rules.

3. This is not supported out-of-the-box. However, you may use a custom validation rule and custom message as function in order to build the text dynamically. Information on custom messages can be found here.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniel
Top achievements
Rank 1
answered on 07 Mar 2013, 02:42 PM
2. so in order to use the follow validations : required, not to be more than 30 characters,and start with capital letter,how can i do this?
0
Accepted
Rosen
Telerik team
answered on 08 Mar 2013, 09:12 AM
Hello Daniel,

You will need to create a custom rule for the max characters validation. For the capital letter validation can be use pattern rule with the appropriate regular expression.
Here is a small test page which illustrates a basic implementation.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniel
Top achievements
Rank 1
answered on 08 Mar 2013, 12:22 PM
Thank you for the example,this is what i was looking for.

Best Regards,
Daniel
Tags
Validation
Asked by
Daniel
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or