PDA

View Full Version : grouptabpanel



tdikarim
27 Nov 2012, 8:08 AM
Hi all,

I have a grouptabpanel.
After layout I modify a div contained in the title of the grouptabpanel



title: '<div id="mainMenu_title_cmd" style="height: 87px;"> <div id="MENUNAV_cmd"><div id="badgecmd" class="badge"><div id="badgecmd_nb">' + badgecmd_nb + '</div></div><img id="MENUNAV_img_cmd" src="images/cmdSelected.png"></div></div>',

with this :


example:
var badgecmd_nb = 10;
Ext.get("badgecmd_nb").setHTML(badgecmd_nb);

That's work fine.


But When I click on another grouptab, the grouptab menu is reseted. and the initial value (0) is restored to badgecmd_nb div.

How to break this refresh and do it only if necessary?

Thanks

Animal
27 Nov 2012, 1:59 PM
This should not happen in 4.2 GroupTabPanel has been refactored.

tdikarim
28 Nov 2012, 12:14 AM
Thanks for your response,

I will try with 4.2 ...