1 Reply Latest reply on Jan 12, 2009 3:59 AM by Milo[HUN]

    ComboBox ScrollToIndex


      I have a combobox with plenty of data in it. I mad a a search method, which sets the selectedIndex if the item found in the dataprovider. But unfortunately if the selected item is not visible in the dropdown list, it just won't scroll to the selected item. Is there any way to solve this problem?
      Thanks a lot.
        • 1. Re: ComboBox ScrollToIndex
          Milo[HUN] Level 1
          Just as always, the case is solved only after written it:
          comboBox has a dropdown LisCollection, which has a scrollToIndex public method.
          So is the selected index is 'i' than it's gonna look like something like this:
          myCombo.selectedIndex = i;

          and it works like pretty :)