I need to do display server side validations errors on Edit/Add Screen of Popup.
I have added the custom template through "TemplateName" and placed it in "EditorTemplates" and I am adding error message at server as :
ModelState.AddModelError("error1", "Error 1 description");
.Events(events => events.Error("error_handler"))
1) I want to display error besides field on the popup.
2) As soon as I click update the popup closes. I want it to keep open and display error message. I tried e.preventDefault(); but it doesn't seems to work. It does cancel the grid refresh but window closes.
Has anyone done this? is there a sample I can follow.
Thanks in advanced.