1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    cheublein is on a distinguished road

      0  

    Default Unanswered: NestedList Leaf Add Panel with Components

    Unanswered: NestedList Leaf Add Panel with Components


    Hello Everyone,

    This is my first post and I am new to Sencha! I have been going through the examples and Google, and have not found the answer to this. I cannot imagine that it is too difficult...

    This is my viewport.js file

    App.views.Viewport = Ext.extend(Ext.NestedList, {
    fullscreen: true,
    title: 'MainMenu',
    store: App.MainMenu_store,
    getDetailCard: function(item, parent) {
    var itemData = item.attributes.record.data,
    detailCard = new Ext.Panel({
    items: [App.views.mapPanel]
    });
    this.backButton.setText("Main Menu");
    return detailCard;
    }

    });
    App.views.mapPanel = new Ext.Panel({
    fullscreen: true,
    dockedItems: [maptoolbar],
    items: [mapdemo]
    });

    I have tried this and obviously it does NOT work.. I have also tried adding the dockedItems and Items from the mapPanel directly into the detailCard, but everytime I do.. the detailcard does not display..

    Thank you in advance for taking the time to help me!

    Chris

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,652
    Vote Rating
    901
    Answers
    3575
    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


    You are trying to add another component to NestedList? You cannot do that, it creates it's own items based on the TreeStore
    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