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.
the error message you are getting is propagated from jQuery's ajax, so there is no need to handle extra events , i would rather run the MVC project in debug mode, you can also check the server response text, you are most probably getting Error 500 from the server, so if you use firebug to check the request/response it should become more evident.
Thanks,
Angel
Hey Angel,
I know it is a little late.
I have a problem with the previous sample: I managed creating and updating. I don't success to delete a row. and I get the error you said in your post. What is wrong? How can I correct it?
F2O