Timeout

10 posts, 0 answers
  1. William
    William avatar
    23 posts
    Member since:
    Jan 2012

    Posted 27 Feb 2012 Link to this post

    I am having an issue where I have a long running query and I see we get results in Fiddler, but the loading gif disappears in the Grid before the results are returned.  My assumption is that there is a timeout setting, but I see no documentation about it.  Also, when this happens I am unable to query the datasource.  Any help would be appreciated.

    Wade
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 01 Mar 2012 Link to this post

    Hello Wade,

    Unfortunately we are not sure how to reproduce this. However the loading panel which appears above the Grid widget will be removed if the request succeeds or fails, i.e if success or error event handler is called.

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. William
    William avatar
    23 posts
    Member since:
    Jan 2012

    Posted 01 Mar 2012 Link to this post

    I guess my first question would be, is there a timeout setting for the datasource?  From what I can tell by watching Fiddler, is that the Grid stops waiting for a response before the server is finished processing.  Any thoughts?

    Wade
  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 05 Mar 2012 Link to this post

    Hello William,

    In case of remote binding the DataSource uses $.ajax and doesn't defines any timeout.
    You can wire handler to both events described in my previous post and see whether they are fired.

    Also if you provide us with a sample we will be able to assist you further.

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. William
    William avatar
    23 posts
    Member since:
    Jan 2012

    Posted 07 Mar 2012 Link to this post

    I will get on that, sorry for the late response, been away for business.
  7. William
    William avatar
    23 posts
    Member since:
    Jan 2012

    Posted 07 Mar 2012 Link to this post

    Ok, I added the error event to my datasource and I get a "12002" error.  Looking this up, it is apparently a timeout error.  I am not sure an example of my code would help as it ripoff of the demo code.  What is different is that I am calling an ASP.Net Generic Handler (.ashx) file, which has a minute timeout set for the sql command I am executing.  The perfect solution is to fix the length of the query, but my biggest concern is that when I run into this problem, where I get a timeout error.  I am not able to requery the datasource without refreshing the page.  If you still feel an example will help, I will build something.  Thanks.
    Wade
  8. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 09 Mar 2012 Link to this post

    Hello William,

    You can try changing default timeout setting of jQuery.ajax (in DataSource configuration) and see whether it makes any difference.

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  9. William
    William avatar
    23 posts
    Member since:
    Jan 2012

    Posted 22 Mar 2012 Link to this post

    I added the timeout to the datasource and it failed to work.  I think this might be an IE 8 issue, because when I happened to run the same code in Chrome it worked just fine.  Here is what code I used:
    var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "/handlers/blah.ashx",
                        dataType: "json",
                        type:"POST",
                        timeout: 90000,
                        data: {
                            keyword: function () { return $("#keyword").val() },
                            category: function () { return $("#category").val() },
                            vendor: function () { return $("#vendor").val() },
                            lowprice: function () { return $("#lowprice").val() },
                            highprice: function () { return $("#highprice").val() },
                            showOutOfStock: function () { return $("#showOutOfStock").val(); }
                        }
                    }
                },
                schema: {
                    data: "Results",
                    total: "Count"
                },
                pageSize: 100,
                serverPaging: true,
                serverSorting: true
            });

    Thanks.
  10. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 27 Mar 2012 Link to this post

    Hello William,

    We have addressed an issue with Kendo DataSource when error event is fired you cannot force read any more. This fix will be available in next internal build in a couple of days. You can give it a try and see whether it makes any difference.

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  11. William
    William avatar
    23 posts
    Member since:
    Jan 2012

    Posted 15 Apr 2012 Link to this post

    I believe I have found the issue. Apparently, there is a registry edit setting - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet that was causing the connection to close after 10 seconds. Here is the original link - Internet Explorer 8 timeout too quick on page POSTs  I guess certain install programs will set this for some reason and then forget to remove the key.  Thanks all for the help along the way.

    Wade

Back to Top
Kendo UI is VS 2017 Ready