kendovalidation for kendo objects

2 posts, 0 answers
  1. PAUL
    PAUL avatar
    36 posts
    Member since:
    Aug 2012

    Posted 21 Aug 2012 Link to this post

    I would like to write some client side validation for kendo objects when the save button is clicked...however I am having trouble doing so. For example I have two autocompletes that have the same data bound to them. One of them cannot be empty. And if both have a value they both cannot be the same value (name). I also have a currencytext box that cannot be empty to create the record.

    All of the validation examples I have found so far deal with regular web inputs. I just figured out, thanks to this forum how to set focus to a kedno object. It was no where in documenation and intellisence did not pick up the .siblbings on the second line of code. Also Iwould of had no idea to put ("input:visible").focus();  on the second line either. Can you point me to a demo that validates ACTUAL Kendo objects on a web form? Thanks...brand new at this

     

     

    var numeric = $("#AuthBudget").kendoNumericTextBox();
    numeric.siblings(
    "input:visible").focus();

     

  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 24 Aug 2012 Link to this post

    Hi Paul,

    Such example is present in our validator documentation (scroll to the bottom). The numeric textbox widget also has a focus method.

    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top