Validator Custom Rules run but validator.validate() returns function

2 posts, 0 answers
  1. jwize
    jwize avatar
    66 posts
    Member since:
    Mar 2013

    Posted 12 May 2013 Link to this post

    I have been able to successfully use validator.validate() in my pages until now where I am loading content dynamically from a partial view. 

    $("#mydiv").append( $.get ... partial view );

    Here are the facts of what is happening. 
    1. I load partial page with a form  and validation rules dynamically. 
    2. When the form submits the validation code is executed and the form is prevented from posting to the server when it is invalid.. 
    3. When I run the validate() function it doesn't return false like it should (ex. myvalidationform.validate()  // returns and object instead of the expected false result when the data is invalid in the form. 
    Please someone uncover this mystery for me. 

  2. Rosen
    Rosen avatar
    3253 posts

    Posted 14 May 2013 Link to this post

    Hi Jaime,

    I'm afraid that it is not clear what may be the cause for such behavior looking at the provided details. Therefore, please send us a small runnable sample in which this issue can be observed locally.

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top