Critical Issue!!! Model validation errors are not shown to user from kendo grid
See original GitHub issueHi dear @hikalkan , @ismcagdas , @yekalkan , @alirizaadiyahsi ,
I got stuck up on a critical issue! Currently I am migrating my normal MVC DB first solution to ABP (#4234). It is almost completed and running successfully about 90%. I am using Kendo UI for ASP.NET MVC in my application. The problem is, the model validation errors are not shown to the users. I tried with [DontWrapResult], implemented the ICustomValidate interface and thrown a UserFriendlyException from the AddValidationErrors() method itself (I don’t think its needed, but just for testing).
Also thrown a dummy UserFriendlyException from the controller too. Unfortunately, nothing is shown up. The Kendo itself having an error handler. I received the return like this:
I was running my application with <customErrors mode="On"/>
.
When I inspected through the xhr.responseText after setting <customErrors mode="Off"/>
i can see the error [AbpValidationException: Method arguments are not valid! See ValidationErrors for details.] and stack trace.
Don’t know what is happening. without this I cannot release my application. Please help me urgently.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
Hi, I Solved it myself. The method attribute
[DisableValidation]
made my day!!Thank you @sajasbana for your kind consideration. 🤗
Hi, @bbakermmc Thanks for your reply. I will work on this and let you know.