View Full Version : Panel to Panel via renderto

26 Sep 2008, 7:41 AM

I've got an error that I'm not quite certain about. We've got a panel via the below code.

title: 'Main Content',
id: 'OrderInfoMain',
collapsible: false,
margins: '5 0 0 0',
xtype: 'panel'

Which is an item of a tabed panel and nested border type panel. Nevertheless, we've added a bit of plain html that we are invoking a function on and trying to run the below code.

aPmtsPanel = Ext.Panel({
title: 'something',
html: 'something in here is going to work I hope',
renderTo: 'OrderInfoMain',
id: 'aPmtsPanel_p'

However, we're getting the below error.

this.addEvents is not a function - ext-all-debug.js (line 12344) - we took a look there and I believe this is Ext code trying to add the events to this panel that its adding to OrderInfoMain. Where am I going wrong?


26 Sep 2008, 7:45 AM
Do not render.

add Components to Containers.

Ensuring that you have configured the Container to lay child Components out in the way you require.