0 Replies - 4681 Views - Last Post: 05 July 2012 - 01:07 AM Rate Topic: -----

#1 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 49
  • View blog
  • Posts: 453
  • Joined: 04-January 11

Autoselect in dropdownextender on textbox textchanged

Posted 05 July 2012 - 01:07 AM

Hi to all reading this post.

I have a textbox that accepts Transaction Id and a dropdown extender that is populated with a list of transaction ids available.

My dropdown extender is a panel with a repeater that binds the list of transactions.

What I want to implement is that the behavior of the dropdownlist will be like the windows form's combobox wherein when the user types a character, the dropdown automatically selects or focuses on the item that contains the typed character/s.

So for example, I have in my dropdownlist the following transactions:


When I type in the textbox 'A' then the first instance of a transaction containing 'A' as its first character will be focused.

If I type another character, 'B', which makes it 'AB' then the item in my dropdownlist with the starting characters 'AB'
will be focused.

I am wondering if I can use StartsWith but problem is... I do not know how to focus the item in the repeater inside the dropdownlist.

I hope someone can give a hand.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1