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

Validation with Jquery validate in a Telerik window

1 Answer 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mario
Top achievements
Rank 1
Mario asked on 14 Jun 2012, 03:17 PM
Hello Support,

How could I accomplish a client side validation with jquery validate for fields that live inside a telerik window component

Keep in mind the <form> element is outside the window

I have a master form called Referral and two inner telerik windows (modal dialogs) to add patients and physicians to the referral form without leaving it

Let me know how should I approach this

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 19 Jun 2012, 09:06 AM
Hi Mario,

The form should be inside the window, otherwise the window wont be surrounded  with a form tag since it is rendered at the end of the body tag. Also if your window is loaded with Ajax I would suggest you to check this code library article which shows how to enable validation (check the AjaxLoadedValidation.cshtml view).

Regards,
Petur Subev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Window
Asked by
Mario
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or