I'm prototyping a new MVC project, and I'm looking into the Ignite controls. I have a grid, which displays data via Entity Framework correctly. I implemented a double-click handler so double-clicking a row opens a new view withe details for that row. I added a "Back to List" ActionLink which returns me to the Index view. This works most of the time. Sometimes I get an exception from the data provider, and I get thrown into the debugger with this exception:
Unhandled exception at line 26, column 17779 in http://localhost:58263/Scripts/IG/js/modules/infragistics.ui.grid.framework.js 0x800a139e - Microsoft JScript runtime error: The remote request to fetch data has failed: (error) undefined
I would rather be able to catch that exception and display it in an alert or something. I tried experimenting with OnException in my controller, and even tried out ELMAH, but I can't manage to do anything with that exception.
I know it's an issue with the data provider, but I'd like to handle this gracefully.
Hello jbaumgartner,
Thank you for contacting Infragistics!
After further investigation, I am leaning towards a global error handling setup such as suggested in the following forum thread:
http://www.cypressnorth.com/blog/web-programming-and-development/global-ajax-error-handling-with-jquery/
If you have any questions, please let me know as well.