Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExtJS accordion init component while collapsed

Tags:

init

extjs

I have following problem in EXTJS: I have an accordion layout with 2 panels. the first panel is for choosing an element and if you doubleclick the detail will be displayed in the second panel.

However there is one problem: The elements of panel2 seems not to be initialised, so i get an "is undefined" error.

When i open panel2 and close it, i dont have the problem. However opening and closing it looks creepy.

Is there a way to initialise the elements while it is collapsed? or is there something like a callback in mainPanel.layout.setActiveItem(panel1)...callback:initPanel2() ?

like image 583
umit_alba Avatar asked Nov 15 '22 11:11

umit_alba


1 Answers

Both panels should already be rendered (unless you have set deferredRender: true) so it's unclear exactly what you are trying to do. What does your code look like?

like image 200
Brian Moeskau Avatar answered Dec 15 '22 01:12

Brian Moeskau