2 Replies Latest reply on Jan 24, 2009 5:51 PM by Newsgroup_User

    Repeater Selected Index

    jaswanttak
      I am developing an AIR application with dynamic tab using TabNavigator. Each Tab is rendered by using repeater. Suppose my repeater has 3 items then application would have 3 tabs let Tab1 Tab2, Tab3.

      My application gets refreshed automatically after each 5 seconds. Its working very well. Now the problem is suppose I have selected tab 2 and application gets refreshed, then tab2 will be selected, yes it is okay. But in tab 2 the data of tab1 is being displayed. so what should I do so if tab2 is selected on application refresh then the data of only tab two should be displayed. That is if tab index 2 is selected than repeater index should also be 2.

      Please help!!

      jaswant
        • 1. Re: Repeater Selected Index
          ntsiii Level 3
          First, slow down the refresh so you can debug.

          Then debug the data feeding the repeater.

          I hope you are using a result handler. Also, I hope you are repeating a custom component, so yo can see the data that is comming into each tab.
          • 2. Re: Repeater Selected Index
            Level 7

            "jack7483" <webforumsuser@macromedia.com> wrote in message
            news:glecda$h2r$1@forums.macromedia.com...
            >I am developing an AIR application with dynamic tab using TabNavigator.
            >Each
            > Tab is rendered by using repeater. Suppose my repeater has 3 items then
            > application would have 3 tabs let Tab1 Tab2, Tab3.
            >
            > My application gets refreshed automatically after each 5 seconds. Its
            > working
            > very well. Now the problem is suppose I have selected tab 2 and
            > application
            > gets refreshed, then tab2 will be selected, yes it is okay. But in tab 2
            > the
            > data of tab1 is being displayed. so what should I do so if tab2 is
            > selected on
            > application refresh then the data of only tab two should be displayed.
            > That is
            > if tab index 2 is selected than repeater index should also be 2.

            Try looking at Q9
            http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf