Results 1 to 2 of 2

Thread: TreeView Example Not Working

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default TreeView Example Not Working

    Hello. I am new to Sencha so I maybe doing something obvious.I am trying to get the Treeview sample in the SDK to work; however when the page loads none of them render nodes: http://localhost/extjs/docs/index.html#!/example/tree/treegrid.html

    I
    also tried creating a new simple sample using code below but it also not work. The other samples work, just not treeviews. I downloaded ext.4.0.7 and i am binding to:
    <script type="text/javascript" src="extjs/ext-all.js"></script>

    Thanks for the help, I want to get rocking!

    <script language='JavaScript' type='text/JavaScript'>
    Ext.require([
    'Ext.tree.*',
    'Ext.data.*',
    'Ext.tip.*'
    ]);


    Ext.create('Ext.tree.Panel', {
    renderTo: Ext.getBody(),
    title: 'Simple Tree',
    width: 150,
    height: 150,
    root: {
    text: 'Root',
    expanded: true,
    children: [
    {
    text: 'Child 1',
    leaf: true
    },
    {
    text: 'Child 2',
    leaf: true
    },
    {
    text: 'Child 3',
    expanded: true,
    children: [
    {
    text: 'Grandchild',
    leaf: true
    }
    ]
    }
    ]
    }
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    It's working fine for me. Run it with Firefox or Chrome and check out the request in the network tab of the developer tools or firebug and see what the response is. Is it returning an error?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •