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

Kendo Validator won't work in Kendo Window

1 Answer 133 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 02 Dec 2015, 12:28 AM

In the attached TestApp project I have two files index_works.html and index_broken.html. One where the Kendo Validator works fine in the Kendo Window but only if I moved the <form> tag inside of the Kendo Window control.

 What do I need to do to make it work in the broken one, or is this not possible?

 Regards,

m

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 02 Dec 2015, 12:41 PM
Hello Michael,

Thank you for contacting us.

When the Window is initialized its content is moved in the DOM just before the closing body tag. Thus, in the index_broken.html file the window content is actually outside the form that is being validated. You can verify this by inspecting the rendered html.

With this said, in order to validate the content of the window you need to have the form placed inside the window.

Regards,
Viktor Tachev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Validation
Asked by
Michael
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or