I am having difficulties with very strange problem. My Dynamically created container doesn't get drawn into an exsisting one.
var patientContainer = new Ext.container.Container(id:'patientContainer'+ rec.data.patientId, style: {height: '500px', width:'500px',
borderColor:'#000000', borderStyle:'solid',
borderWidth:'1px'}});
//exsisting container
cont.add(patientContainer);
cont.doLayout();
The value fr container id is present. I have also checked there is nothing wrong with the exsisting container cont
Am I missing something?
UPDATE: using this code changes nothing
var patientContainer = Ext.create('Ext.container.Container', {
id:'patientContainer'+ rec.data.patientId,
width:400,
height:400,
style: {
borderColor:'#000000',
borderStyle:'solid',
borderWidth:'1px'
}
});
UPDATE: Below is a screenshot of the console output. First one is the nely created container and the second one is the exsisting one 