Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
How to handle Server Side Exceptions from MVC controller
posted

I am using the igGrid using the Grid Model approach. After Updating/Editing the grid post to an MVC controller. I would like an example how to handle Server Side errors and displaying the error to the returned View. 

Thanks

Parents
No Data
Reply
  • 485
    Offline posted

    Hello Eric,

     

    Thank you for posting in our forum.

     

    There are several different approaches that might be applicable, so I would appreciate some additional information with regard to your scenario:

     

    1. What kind of error messages do you want to show in the View to the user? I guess you try to validate the data that has been sent by the client and want to show some validation error, am I correct?

     

    1. Do you want to show a different View/redirect to another page, when there is a server validation error, or show some popup/modal in the currently loaded page that contains the igGrid?

     

    1. How do you post the new data to the server when the user updates the igGrid?

     

     

    Providing me those details would be greatly appreciated as it would allow me to get a better idea of the requirements you have, as well as the specifics of your web application.

     

    I look forward to your reply.

Children