tags:

views:

1

answers:

0

I have several tabs, 5 are always displayed and 1 is dependent on the current seletedItem in a dataGrid. When I select a dataGrid item that requires TAB6, it will display without issue, but if I then select a dataGrid item that does not require TAB6 - the contents of TAB6 are still displayed I assume since there was no TabNavigator event changing tabs and no way to click on TAB6 since it is now gone. On change event in dataGrid I set myTab.selectedIndex=2; but that does not clear the TAB6 canvas and other items under it. RemoveChild does not clear the contents. I would fine with killing the tabNav and having recreate on a dataGrid change, but don't know how to do that. I also sometimes have several tabs selected, though in all cases only selectedIndex=2 is executed. If I click on the tabs they get straight.