PDA

View Full Version : How to add a user class name to a container within a container



tmcdonald
4 May 2012, 5:37 AM
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:



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:



this.myContainer = Ext.create("MyApp.view.ParentContainer");


Thanks for any insight.

Phil.Strong
4 May 2012, 7:34 AM
you can use itemId or Id as well

tmcdonald
4 May 2012, 7:50 AM
I'm not sure what you mean

bharatn
4 May 2012, 10:53 AM
using down api
http://docs.sencha.com/touch/2-0/#!/api/Ext.Container-method-down