How do I set the time out for loading the TreePanel?
How do I set the time out for loading the TreePanel?
I want to be able to set the time out for loading the TreePanel. There doesn't seem to be a timeout property I can set. I did a Google search and found this:
and scroll down to the requestData() method you'll see the current version of the method that the other post was based on. It looks like there hasn't been a timeout added in the meantime.
Alternatives to the approach you've already found would be:
Changing the default timeout for all Ajax requests using Ext.Ajax.timeout.
Intercepting the request using Ext.Ajax's beforerequest event and changing the timeout if the request is for your tree.
However, all of this is a distraction from the real problem: your server shouldn't be taking more than 30 seconds to load tree nodes.