Hi there,
We have a page with a WebTab control on it, and some of the tabs use long running methods. We want to be able to disable the "Server does not respond" message completely, but have been unable to do so. I've tried setting the timeout of the callbackmanager during the initialize event, but get presented with an error saying that the callbackmanager is null.
Any ideas?
Hello Alex,
Thank you for your question!
There is no way to "Disable" the message, because this message means that either the server is stuck in a loop or the server is still processing the request, and we should handle these scenarios. My suggestion is to increase the time which is needed to process your data (from the long running methods) and to see if the error is caused by insufficient time or infinitive loop. Follow the suggestions from this thread and let me know about the results. Our WebTab control also have "_callbackManager".
http://ko.infragistics.com/community/forums/t/61701.aspx
Looking forward to hearing from you.
Thanks for the response.
I did see that thread, but couldn't understand where I'm meant to put that code. Could you give me an example?
I get this:
Line: 422Error: Unable to get property '_callbackManager' of undefined or null reference
using this:
function setTimeout() { ig_controls.WebTab1._callbackManager.setTimeout(60000); }
Hello,
Can I suggest you to get the sender object which is passed to the Initialize client event and from there access the _callbackManager.
Example:
<script type="text/javascript" id="igClientScript1"> function WebTab1_Initialize(sender, eventArgs) { sender._callbackManager.setTimeout(60000); } </script>
Still getting the following message on changing a tab (which causes an Async postback):
Line: 482Error: Unable to get property 'setTimeout' of undefined or null reference
Edit: was able to get it to work (I think) by using:
function setTimeout(sender, eventArgs) { var tab = $find('<%=WebTab1.ClientID %>'); tab._callbackManager.setTimeout(120000); }
However, even if this function isn't called, it seems to prevent the UpdateProgress spinner from running. Am I setting the incorrect timeout perhaps?
Yes, this is the correct timeout. Maybe we need to try something else, could you please send me isolated sample that is reproducing the issue, or guide me how to create one on my side. This will help me to investigate and resolve the issue for you.
My bad, I was stupid enough to name the function setTimeout, this was what was causing the issue!
Thanks for the help!
I am glad that I've managed to help you.
Thank you for using our controls!