Validation against Remote Data for Autocomplete

3 posts, 0 answers
  1. Kuldeep
    Kuldeep avatar
    3 posts
    Member since:
    Jul 2012

    Posted 08 May 2012 Link to this post

    Hi,
    How do I validate the autocomplete text-box has valid value form remote data and user has not typed anything in it using custom validator.
  2. Morne
    Morne avatar
    2 posts
    Member since:
    Oct 2012

    Posted 11 May 2012 Link to this post

    One suggestion is to have a function for on submission that does an ajax call with the input text to another page that returns either true or false, based on a script that checks the value against your remote data.

    I am not sure if there is a simpler way that you can force the input to be validated without an ajax call, perhaps you can load all the remote data into a json and then validate against the json on submission?
  3. Kendo UI is VS 2017 Ready
  4. Kuldeep
    Kuldeep avatar
    3 posts
    Member since:
    Jul 2012

    Posted 11 May 2012 Link to this post

    Thanks Morne, I was able to use the custom function to do the validation, the only issue is I have more than one of these controls, how can I have a custom validation for multiple controls using Kendo Validator.
Back to Top