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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1364
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •