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

[Solved] MicrosoftMvcJQueryValidation Object Required

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
lmf232s
Top achievements
Rank 1
lmf232s asked on 06 Oct 2010, 02:50 PM
I get a javascript error on page load when using the MVC Jquery Validation.

Stepping though the javascript file leads me to these 2 lines:
var formElement = document.getElementById(validationContext.FormId);
var registeredValidatorCallbacks = formElement.validationCallbacks;

The validationContext.FormId is 'Gridform' yet there is not <form> tag on the page with and id of 'Gridform' when the page loads. Thus when the we attempt to get the validationCallbacks it throws an error since formElement is null.

I can add a dummy <form id="Gridform"></form> tag to the page and this gets rid of the error on page load but then none of my client side validation works.

Im using version: 2010.2.825, is this fixed in a newer version or is there a work around?

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 06 Oct 2010, 03:41 PM
Hello lmf232s,

 Yes, this is fixed in the current official release.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
lmf232s
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or