validation messages position

5 posts, 1 answers
  1. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 04 Mar 2013 Link to this post

    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
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 05 Mar 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 07 Mar 2013 Link to this post

    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?
  5. Answer
    Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 08 Mar 2013 Link to this post

    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!
  6. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 08 Mar 2013 Link to this post

    Thank you for the example,this is what i was looking for.

    Best Regards,
    Daniel
Back to Top
Kendo UI is VS 2017 Ready