PDA

View Full Version : Panel to Panel via renderto



jareddd
26 Sep 2008, 7:41 AM
Hey,

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,
region:'center',
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?

Thanks

Animal
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.

http://www.google.com/custom?hl=en&client=google-coop-np&cof=AH%3Aleft%3BCX%3AExt%2520Forum%2520Search%3BL%3Ahttp%3A%2F%2Fwww.google.com%2Fcoop%2Fintl%2Fen%2Fimages%2Fcustom_search_sm.gif%3BLH%3A65%3BLP%3A1%3BT%3A%23333333%3BLC%3A%23000099%3BVLC%3A%236633CC%3BGFNT%3A%23777777%3BGIMP%3A%23777777%3BDIV%3A%23336699%3B&adkw=AELymgXJm6DGmq4H81CObuXpbMgb2D4qThoX0ndgpvn6fX8P4SPqZsy59WIsDH8-B7v2du6Nv9z2uWEVb0EnsmigUH4Qy66eRNtqqUyToN2Nwl4UMoYb8AqDu6XJlaiCJUPplOb5NQQd&q=%2B%22do+not+render%22+%2Badd&btnG=Search&cx=011693920879787039234%3Az7of1ufqccu

http://extjs.com/deploy/dev/docs/?class=Ext.Container