1. #1
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    178
    Vote Rating
    0
    badgerd is on a distinguished road

      0  

    Question TreePanel question

    TreePanel question


    Hi there I am using the TreePanel example in my application, the TreePanel is loading and the root node appears, but the remainder of the tree does not want to appear.

    What would be the issue? I have tried searching and cannot find anything as yet.

    JSON data - menu.cfm
    PHP Code:
    [{"text":"build","id":"\/build","cls":"folder"},{"text":"INCLUDE_ORDER.txt","id":"\/INCLUDE_ORDER.txt","leaf":true,"cls":"file"},{"text":"ext-core.js","id":"\/ext-core.js","leaf":true,"cls":"file"},{"text":"air","id":"\/air","cls":"folder"},{"text":"source","id":"\/source","cls":"folder"},{"text":"adapter","id":"\/adapter","cls":"folder"},{"text":"examples","id":"\/examples","cls":"folder"},{"text":"docs","id":"\/docs","cls":"folder"},{"text":"CHANGES.txt","id":"\/CHANGES.txt","leaf":true,"cls":"file"},{"text":"ext-all.js","id":"\/ext-all.js","leaf":true,"cls":"file"},{"text":"ext-core-debug.js","id":"\/ext-core-debug.js","leaf":true,"cls":"file"},{"text":"LICENSE.txt","id":"\/LICENSE.txt","leaf":true,"cls":"file"},{"text":"ext-all-debug.js","id":"\/ext-all-debug.js","leaf":true,"cls":"file"},{"text":"resources","id":"\/resources","cls":"folder"},{"text":"dev","id":"\/dev","leaf":true,"cls":"file"},{"text":"CHANGES.html","id":"\/CHANGES.html","leaf":true,"cls":"file"}] 
    JS
    PHP Code:
    Ext.onReady(function(){
        
        
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
        
        var 
    tools = [{
            
    id:'close',
            
    handler: function(etargetpanel){
                
    panel.ownerCt.remove(paneltrue);
            }
        }];
        
        var 
    viewport = new Ext.Viewport({
            
    layout:'border',
            
    borderfalse,
            
    items:[{xtype:'portal',
                
    region:'center',
                
    borderfalse,
                
    marginssetTopMargin ' 5 5 0',

                
    items:[{
                    
    width:200,
                    
    id:'col1',
                    
    style:'padding:10px',
                    
    items:[
                    {
                        
    title'Tree Menu',
                        
    html'<div id="tree-div" style="overflow:auto; height:300px;width:250px;border:0px solid #c3daf9;"></div>'                
                        
    }]
                },{
                    
    columnWidth:1,
                    
    style:'padding:10px 10px 10px 10px',
                    
    items:[{
                        
    title'News',
                        
    cls'centre-panel',
                        
    htmlExt.example.News
                    
    }]
                },{
                    
    width:215,
                    
    id:'col3',
                    
    style:'padding:10px',
                    
    items:[{
                        
    title'Template',
                        
    htmlExt.example.Template
                    
    }]
                }]
            }]
        });
        
        var 
    Tree Ext.tree;
        
        var 
    tree = new Tree.TreePanel({
            
    el:'tree-div',
            
    useArrows:true,
            
    autoScroll:true,
            
    animate:true,
            
    enableDD:true,
            
    containerScrolltrue
            
    loader: new Tree.TreeLoader({
                
    dataUrl:'menu.cfm'
            
    })
        });

        
    // set the root node
        
    var root = new Tree.AsyncTreeNode({
            
    text'Ext JS',
            
    draggable:false,
            
    id:'source'
        
    });
        
    tree.setRootNode(root);

        
    // render the tree
        
    tree.render();
        
    root.expand();

    }); 
    No javascript errors occur and firebug does not appear the contain the data.

    Am I trying to load the tree data at the wrong time?

  2. #2
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    178
    Vote Rating
    0
    badgerd is on a distinguished road

      0  

    Default


    /bump

    I have not yet been able to find a solution to this issue. Is there anyone that may be able to assist me?

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