Multiple Validators/Multiple Div tags?

2 posts, 1 answers
  1. Mike
    Mike avatar
    16 posts
    Member since:
    Apr 2017

    Posted 03 Jan 2019 Link to this post

    Is it possible to have multiple validator initializations on different div tags?  Basically I'm wanting to do a wizard (without the use of the progress bar) and I want to validate one div tag per "next" button.

        function ShowSection2()
        {
            //validation
            var validator = $("#Section1").kendoValidator().data("kendoValidator");
            if (!validator.validate())
            {
                return;
            ...

     

        function ShowSection3()
        {
            //validation
            var validator = $("#Section2").kendoValidator().data("kendoValidator");
            if (!validator.validate())
            {
                return;
            ...

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    2136 posts

    Posted 07 Jan 2019 Link to this post

    Hello,

    Initializing different Validators for different containers (divs) is possible. Here's a dojo example showing two validators initialized for the "myform1" and "myform2" divs.

    Regards,
    Ivan Danchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top