Required validation is not working on a DropDownList

6 posts, 1 answers
  1. Answer
    olivier
    olivier avatar
    14 posts
    Member since:
    Feb 2011

    Posted 15 Jan 2014 Link to this post

    Hello,

    I'm using templates to display the items and the selected value on a DropDownList.

    I assign the optionLabel using a string. I do it this way because I don't know the object structure upfront (it is defined at runtime).

    My challenge now is that the required validation is not working on this scenario. Please take a look to this JSBin: http://jsbin.com/eLaQaFaP/2/. It reproduces the issue I'm getting on my app.

    Thanks for your help.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 16 Jan 2014 Link to this post

    Hello Olivier,

    The problem comes from the fact that in your template when you have the first optionLabel, it cannot locate the dataTextField and act accordingly. Please check the updated example here:

    http://jsbin.com/UhEKocEf/1/edit

    Regards,
    Kiril Nikolov
    Telerik
    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. olivier
    olivier avatar
    14 posts
    Member since:
    Feb 2011

    Posted 16 Jan 2014 Link to this post

    Thanks Kiril! Your example helped me to fix the problem.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 17 Jan 2014 Link to this post

    Hello Oliever,

    I am happy to hear that the example helped.

    Have a great weekend!

    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Grant
    Grant avatar
    42 posts
    Member since:
    Jul 2016

    Posted 14 Oct in reply to Kiril Nikolov Link to this post

    Hi Kiril,

    Is there a way to have the validation message appear below the dropDown instead of 'inside' the widget? View your updated jsbin example for replicate.

    Thanks,
    Grant

  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 17 Oct Link to this post

    Hi,

    In order to control the position of the validation tooltip, you can use the following approach:

    http://docs.telerik.com/kendo-ui/controls/editors/validator/overview#validator-tooltip

    If this does not help - please open a separate support request with more details about your setup and we will be happy to help.

    Regards,
    Kiril Nikolov
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready