Skip navigation
Currently Being Moderated

Setting focus on multiple components

Feb 14, 2012 11:04 PM



I wish to make a search component having text input at top and custom result pop up which is displayed only when results are obtained. Problem is that when the results are obtained, I need to set focus on the pop up so that the user can navigate by keyboard through search results. Also at same time the user can type something for search. But as the focus is now on pop up the, text is not captured in text input.


So I want a text input and a pop up both to be working at same time as in combo box.


I am using sdk 4.6


Please help. Its urgent


Thanks in advance.

  • Currently Being Moderated
    Feb 16, 2012 6:30 AM   in reply to blossoms_bubbles

    The trick is to add event listeners to both your textinput field AND your list. In the lists event handler, add the character just typed to the textinput. From both those event listeners, call a third function that does the searching or filtering.

    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