PDA

View Full Version : how to show first entry in list of static combo on trigger click



yyogev
18 Oct 2010, 7:45 AM
Hi,

I have a combo showing data from a static store (array in memory). When the trigger button is clicked, I want to scroll the drop-down list to the top item.
So far I was unable to find a way to this.

what I tried:

add listener:
expand: function () {this.select(0);}
this still opened the list with the current value selected
add listeners with setValue() on expand and reset() on collapse - this worked slightly better but I had to keep state of selection and after the first submit of the form it didn't work.


Any ideas would be greatly appreciated.

Thanks,