1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Renfrew
    Posts
    74
    Vote Rating
    2
    tmcdonald is on a distinguished road

      0  

    Default How to add a user class name to a container within a container

    How to add a user class name to a container within a container


    I have a container within a container that I would like to add a class to to the child. However, Architect does not allow me to set the class of the child container.

    The root issue is that I am trying to setData to the child container (the child container has a tpl that I'm populating). I can access it like this:

    Code:
    var userdata = new Ext.getCmp('childcontainer');
    userdata.setData(record.data);
    However, immediately above I activate the parent, so in my mind I "should" have access somehow to set the data of the child container:

    Code:
    this.myContainer = Ext.create("MyApp.view.ParentContainer");
    Thanks for any insight.

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    you can use itemId or Id as well
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    Renfrew
    Posts
    74
    Vote Rating
    2
    tmcdonald is on a distinguished road

      0  

    Default


    I'm not sure what you mean

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  
    Bharat Nagwani
    Sencha Designer Development Team

Thread Participants: 2