Something times out leaving blank page

2 posts, 0 answers
  1. Jack
    Jack avatar
    143 posts
    Member since:
    May 2003

    Posted 27 Nov 2018 Link to this post


    I've been at this one for ages. 

    I have a tree view which when a node is clicked, gets the data from the node.value and shows it. (ajaxed)
    I've tried everything to do with ajax timeout settings in script manager and such but it still happens.

    What could I test for when the node is clicked, that might throw an error? Then I can redirect.



  2. Marin Bratanov
    Marin Bratanov avatar
    5922 posts

    Posted 28 Nov 2018 Link to this post

    Hello Jon,

    You can monitor the network requests and see whether they timeout or return with an error. The most common reason for the loading sign to remain visible is a server error that propagates to the client so you get a JS error instead of the standard events.

    You can use the window.onerror handler to capture any errors thrown: 

    Exceptions from the server that are thrown during partial rendering are captured by the MS AJAX framework and come up as client-side exceptions in the browser console, but the status code of the request is still 200.

    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top