Skip navigation
Currently Being Moderated

Change selected tab when move from one view to another

Apr 15, 2013 6:56 PM

Tags: #flex-mobile #tabbedviewnavigator #flex_4.5.1 #pushview #selectedindex

Hi all,


I have a tabbedviewnavigator application where I have 5 tabs in it. So, the first tab contains the first view of the application, e.g. HomeView. Inside this view, I have a button where upon clicking it, it will push to the second view which is sitting in the second tab.


How do I change the selected tab index upon clicking the button? Because right now the selected tab is till on the first tab. Please help.


Best regard,


  • Currently Being Moderated
    Apr 16, 2013 6:20 AM   in reply to victoryew99

    Use the SelectedIndex function in the TabbedViewNavigator in the button click handler.  myTabbedViewNavigator.selectedIndex = 2;

    Mark as:
  • Currently Being Moderated
    Apr 17, 2013 10:54 PM   in reply to victoryew99

    When you set selected index of 2nd tab, try to set focus on of any control in 2nd tab. It might happen that if you don't set focus on of any control tab may not change.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points