Aug 11, 2015, 7:06 PM
[CLOSED] Setting active MenuItem on the client
Hi,
I'm trying to port the following code snippet that used to work in 1.7:
ExtJs 5.0
ExtJs 3.4
Is there any way around this issue?
I'm trying to port the following code snippet that used to work in 1.7:
// menuPanel is an instance of MenuPanel control housed within a Panel set up with Accordion Layout
// menuItem is an instance of MenuItem control
var menuPanelsCt = menuPanel.ownerCt;
menuPanelsCt.layout.setActiveItem(menuPanel);
menuPanelsCt.items.each(function (item) {
if (item.menu.rendered) {
item.clearSelection();
}
});
menuPanel.setSelection(menuItem);
The code doesn't work because the prototype of Accordion layout control class doesn't define the setActiveItem method any longer:ExtJs 5.0
ExtJs 3.4
Is there any way around this issue?
Last edited by Daniil; Aug 18, 2015 at 2:16 PM.
Reason: [CLOSED]