This is a migrated thread and some comments may be shown as answers.

[Solved] Grid with virtual scrolling gets stuck forever if there is a transport error

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rowan
Top achievements
Rank 1
Rowan asked on 24 Feb 2015, 03:10 AM
If you have a Grid with virtual scrolling enabled, and it has a bad transport read while scrolling (eg mangled JSON response), then it just shows the loading bar forever and becomes completely stuck. It does also not call any of the appropriate error handling methods.

This is because DataSource.prefetch does not provide an error handler for its transport.read call. So if the transport fails, the DataSource just sits there forever thinking that the request is still outstanding.

On the other hand DataSource.read works as expected, as it provides an error handler to transport.read that cancels the request and raises the appropriate error events. However the issue is that virtual scrolling bypasses DataSource.read.

regards,
Rowan

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 25 Feb 2015, 02:39 PM

Hello Rowan,

This behavior is expected as the grid expect the json to be valid when returned. If you want to handle the error however, you can use the jQuery ajaxError(), as shown here:

http://api.jquery.com/ajaxerror/

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Rowan
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or