This is a migrated thread and some comments may be shown as answers.

Angular Kendo validator for kendo window

1 Answer 83 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 29 Sep 2014, 03:33 PM
Hi,

I am using angular kendo window and using the kendo validator within them. If one of the form fields has an error, the $scope.validator.validate() fails as expected. However on correction of the error the $scope.validator.validate() continues to fail. 

I have the same kendo-validator="validate" set on both an 'add' kendo-window and an 'edit' kendo-window form. Once I have a failure in the edit window, opening the add window always shows errors on each of the fields.

Is there any special note or todos for angular kendo-window, kendo-validatiors that I should be aware of. I can post a plnkr if needed. Please let me know.

Here are some snippets

<div kendo-window="allDevices.addNewDeviceKendoWindow" k-title="'Add'" k-width="520" k-height="520"
             k-visible="false"
             k-position='{left:400, top:250}'
             class="titlewindow">
            <div>
                <form id="adddeviceform" class="form-horizontal myform" role="form" kendo-validator="validator"
                      autocomplete="off">

 <!-- K-window for edit-->
        <div kendo-window="allDevices.editDeviceKendoWindow" k-title="'Edit'"
             k-width="520" k-height="520" k-visible="false" k-position='{left:400, top:250}' class="titlewindow">
            <div>
                <form id="editdeviceform" class="form-horizontal myform" role="form" kendo-validator="validator"
                      autocomplete="off">

I'm using an
 if ($scope.validator.validate()) { 

call in the on submit of both the forms

-Rajesh

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 01 Oct 2014, 08:21 AM
Hi Rajesh,

Yes, please provide a plnkr or a http://dojo.telerik.com/ -- that would be great so we can better understand what the problem is.

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or