1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
    ericinseattle is on a distinguished road

      0  

    Default Unanswered: TreeView Example Not Working

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

Thread Participants: 1

Tags for this Thread