Hi,
Im trying to use telerik controls with ASP.Net MVC 2 RC. Im trying to use the MVC dataannotations server/client validations on the form which has some telerik controls placed inside. My problem is that MVC client validation stops working when I try to use the RADScriptManager with a html form tag. It seems like the MVC EnableClientValidation only works with use Html.BeginForm method because it wires up some flags in the background when its rendering the form tag.
When I place the RADScriptManager inside the Html.BeginForm and I get the RADScriptManager requires a form runat="server" error.
When I place the RADScriptManager inside the Html.BeginForm and I get the RADScriptManager requires a form runat="server" error.
If i add a html form tag e.g <form id="frm" runat="server"> on the page and add scriptmanager then the Html.EnableClientValidation is not triggered. Is there a way to make this work?
<%@ Page Language="C#" Inherits="ViewPage<ProductViewModel>" %>
<% Html.EnableClientValidation(); %>
<% using (Html.BeginForm()) { %>
<%= Html.TextBoxFor(m => m.Title) %>
<%= Html.ValidationMessageFor(m => m.Title) %>
<%= Html.TextBoxFor(m => m.Price) %>
<%= Html.ValidationMessageFor(m => m.Price) %>
<input type="submit" />
<% } %>