View Full Version : Panel Object, contentEl, and html paramaters

14 Mar 2011, 12:56 PM
var graphPanel = new Ext.Panel({
hideBorders: true,
border: false,
defaults: {autoScroll: true},
contentEl: 'graph<xsl:value-of select="@ID"/>'

I have a graphPanel object that has the contentEl: parameter (shown above).
The 'graph<xsl:value-of select="@ID"/>' div ID is a dynamically generated one.
There are charts/graphs that are rendered to the that particular div, but they show up outside of my graphPanel object.
I double check the div id, and it is correct.
I want to display the charts inside my graphPanel object (not outside).
I tried to use the html: parameter, but the generated html codes are very complicated with so many single ' quotes, javascripts, and html tags.
So, it did work for me with html: parameter either. I have very little control over how the charts are generated and rendering (third part stuff).
I realized the problem is that I have the charts displayed/rendered to that DIV before I try to embbed them inside my graphPanel.
Any ideas/suggestions/work around would be appreciated.