PDA

View Full Version : Two panels with two differests accordions doesn't work



chegi
28 Aug 2014, 3:17 AM
Hello, Im new in sencha.
I work with extjs 4.
I have one viewport with two panel and an accordion within each.
I change the panel with the property activeItem and this work fine.
But in the init function from controller have:



'cnmcsviewport cnmcsmonthselector' : {
titleclick: this.onTitleClick
},
'cnmcsviewport cnmcsagrupacionselector' : {
titleclickEstadillo: this.onTitleClickEstadillo
}


The events exists in accordions but only work the firts loading, the titleclick in the accordion in second panel does anything.

However their children if they work.


'cnmcsviewport cnmcsmonthselector panel dataview': {
select: this.onMonthSelect
},
'cnmcsviewport cnmcsagrupacionselector panel dataview': {
select: this.onAgrupacionSelect
},


Thank you

mitchellsimoens
4 Sep 2014, 7:56 AM
I'm not really sure what you are needing?

chegi
8 Sep 2014, 12:23 AM
I have two accordions in two differents panels and in the same viewport. When I load the panels, the second accordion doesnt work the title, the childrens works ok.
I change the panel with the option activeItem.

I think the issue is in the controller, because when I click in the title in the first accordion load two menus, but in the second accordion do anything