When binding to remote data:-
.DataSource(d => d
.Ajax()
.Read(r => r.Action("Index", "Books", new { id = Model.Id }))
If an error occurs when calling the controller method, there is no error message and the grid displays no results, so the user doesn't know what's going on.
I'm aware that I can catch errors in my controller method and do something with the DataSourceRequest, however, the particular case I'm experiencing is when a session has been idle and the authentication has timed out, calling the controller method wants to redirect me to the login page.
Usually this would be OK, however, as it's being called in the AJAX handler by the grid, it just fails silently.
How can I catch the error and display it, or ideally, catch the redirect and navigate to the login page?