This question is locked. New answers and comments are not allowed.
Hello,
i have a Window which uses LoadContentFrom.The ActionMethod it loads returns a view that has Ajax.BeginForm.
Initialy i opened the form using : $("#InsertUserWindow").data('tWindow').center().open();
But i wanted the form to be refreshed (so all textbox values get cleared) before opening so i changed the code in : $("#InsertUserWindow").data('tWindow').refresh().center().open();
The refresh() is the only difference.
Without the refresh call, the client-side validation works.
But when i use the refresh method the client-validation is not working anymore.
Do i have to call jQuery.validator.unobtrusive.parse('form'); after i refreshed the Window?
I tried this in the OnLoad and the OnOpen clientevents of the Window but in both cases the validation isn't working.
i have a Window which uses LoadContentFrom.The ActionMethod it loads returns a view that has Ajax.BeginForm.
Initialy i opened the form using : $("#InsertUserWindow").data('tWindow').center().open();
But i wanted the form to be refreshed (so all textbox values get cleared) before opening so i changed the code in : $("#InsertUserWindow").data('tWindow').refresh().center().open();
The refresh() is the only difference.
Without the refresh call, the client-side validation works.
But when i use the refresh method the client-validation is not working anymore.
Do i have to call jQuery.validator.unobtrusive.parse('form'); after i refreshed the Window?
I tried this in the OnLoad and the OnOpen clientevents of the Window but in both cases the validation isn't working.