This question is locked. New answers and comments are not allowed.
Hi,
i have a form named MyForm1 on the page,
i'm using client side validation on that form, its work fine.
i have a form named MyForm1 on the page,
i'm using client side validation on that form, its work fine.
if( $('#MyForm1').valid() ){
// get values from inputs of this form and run some ajax update.
}
i also have a Grid, it's NOT inside this form or any other form
the grid is ajax binding and works fine
When i'm changing this Grid to Batch Editing.
the client validation not work anymore, i get an error
on this line: $('#MyForm1').valid()
Unable to get value of the property 'call': object is null or undefined
hereunder is my code.
please please Please help, i must solve this asap.
Thanks
Mor
javascript files on page: .("jquery-1.7.1.min.js") .("jquery.validate.min.js") .("jquery.validate.unobtrusive.min.js") <% using (Html.BeginForm("", "", FormMethod.Post, new { id = "MyForm1" })) { %> <%: Html.TextBoxFor(m=>m.Property1) %> <%: Html.TextBoxFor(m=>m.Property2) %> <button onclick="ValidateForm_and_get_Property1+2_Values_DoSomeAjax__Works_fine_when_Grid_Not_Editable" <% } %> Html.Telerik().Grid<Models.Item>() .Name("MyGridName") .DataKeys(keys => { keys.Add(p => p.ItemId).RouteKey("ItemId"); }) .Columns(columns => { columns.Bound(c => c.ItemName) columns.Command(commands => commands.Delete()).Width(90).Title("Delete") }) .Editable(e=>e.Enabled(true).Mode(GridEditMode.InCell)) /// here starts the problem... .Render();