<% Html.Telerik().Window() .Name("Window") .Modal(true) .Content(() => { %> <% using (Html.BeginForm()) {%> <%: Html.ValidationSummary(true) %> <fieldset> ... form content here....It would be much cleaner to use a solution like this where we can keep the form inside another page:
<% Html.Telerik().Window() .Name("Window") .Modal(true) .LoadContentFrom("/Home/Popup/") .Visible(true) .Render(); %><% Html.Telerik().Window() .Name("Window") .Modal(true) .Content("<div>... render partial view here....</div>") .Visible(true) .Render(); %>When I try the last two methods, the windows load great, but the client validation doesn't run. If I go to /Home/Popup/ directly (outside of the windows load) the client validation works. But, the minute I launch it inside the window using one of these methods, the client validation doesn't fire. The validation client logic is injected properly into the page, but it just doesn't ever fire.
I have attached an updated version of the clientvalidation project that was posted here late last year. /Home/SinglePage/ demonstrates how the client validation does work when the entire form is in the content method. /Home/Index/ demonstrates how the client validation doesnt work when the form is loaded into the window.
FYI - the reason we are trying to do this is that we have a very large app with over 60 entities (code tables) that users can customize for their company. We are setting this up with a tree view in the left pane of a splitter, with the grid attached to each entity displayed in the right pane. We would like to put a CREATE NEW button on the grid and have it open into a new window in case a user wants to add a new row. This was easy to do in ASP.Net with the RadWindow, but has been a real pain with MVC.