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
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      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
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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