1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    33
    Vote Rating
    1
    Beginner1971 is on a distinguished road

      0  

    Question 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:

    http://www.sencha.com/forum/showthre...ree.TreeLoader

    But it's from April 2008 back when Ext JS was still on version 2. Is this still the best way to do this in 3.x?

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,575
    Vote Rating
    311
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    If you take a look here:

    http://dev.sencha.com/deploy/ext-3.4...reeLoader.html

    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:
    1. Changing the default timeout for all Ajax requests using Ext.Ajax.timeout.
    2. 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.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi