This is a migrated thread and some comments may be shown as answers.
Timeout
9 Answers 402 Views
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 27 Feb 2012, 02:14 PM
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

9 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 01 Mar 2012, 10:14 AM
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!
0
William
Top achievements
Rank 1
answered on 01 Mar 2012, 11:36 AM
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
0
Nikolay Rusev
Telerik team
answered on 05 Mar 2012, 10:52 AM
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!
0
William
Top achievements
Rank 1
answered on 07 Mar 2012, 01:39 PM
I will get on that, sorry for the late response, been away for business.
0
William
Top achievements
Rank 1
answered on 08 Mar 2012, 05:49 AM
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
0
Nikolay Rusev
Telerik team
answered on 09 Mar 2012, 09:35 AM
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!
0
William
Top achievements
Rank 1
answered on 23 Mar 2012, 01:38 AM
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.
0
Nikolay Rusev
Telerik team
answered on 27 Mar 2012, 03:49 PM
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!
0
William
Top achievements
Rank 1
answered on 16 Apr 2012, 02:29 AM

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

Asked by
William
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
William
Top achievements
Rank 1
Share this question
or