Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I looked at it in some more detail, and the cause of the error is that the grid makes an Ajax request to the server when it renders empty. I would like to prevent this behavior, but it doesn't seem like the grid offers an easy opt-out of this request. Not sure how the grid determines the route for the request, but in my case it's made to the '/' route, and the response is not compatible with the bellow code from the Telerik grid JS:</p> <pre><code>dataFilter:function(v,w){v=eval("("+v.replace(j,"new Date($1)")+")"); </code></pre> <p>I made a simple sample project with a single grid and observed the same failure as in my real project.</p> <p>As i mentioned earlier, the error doesn't occur when version 1.7.1 of JQuery is used.</p> <p>The reason why this doesn't fail in JQuery version 1.7.1 is that the above Telerik code is executed inside a try catch block that consumes the exception. In Jquery 1.8.2 the try catch has been removed, so the error will surface in the UI.</p> <p>I would really appreciate some feedback from the Telerik team about the reasoning behind this empty grid Ajax request. It seems like it could lead to a lot of side effects if the '/' route is hit every time the grid renders empty. </p> <p>My current workaround is to satisfy the empty grid Ajax request, and subsequent date parsing (inside dataFilter) by returning a simple date from my action if I detect one of these requests... This will prevent the above code from throwing an exception.... Would appreciate a more seamless solution though.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload