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 Unanswered: 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,327
    Answers
    3884
    Vote Rating
    1297
      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!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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
  •