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
455
Any way to catch the exception?
posted

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.