Feb 19, 2010, 5:50 PM
Combobox Partial String Search for List Item
When you make a combobox editable, you are able to type the name of any items listed in the combobox and filter out the items that do not match. This works great but I have a need to be able to search for any part of the strings in the list items.
For example:
Let's say my list contains the following values
Book
Bookcase
Briefcase
Chair
Canada
I would like for the user to be able to start typing any portion of the list items for example:
user types 'C'
the combobox is searched for the letter C and finds:
Bookcase
Briefcase
Chair
Canada
the user continues to type and types the letter 'A', now the list is narrowed down to anything that contatins 'CA'
Boookcase
Briefcase
Canada
the user continues to type and types the letter 'N', now the list is narrowed down to anything that contatins 'CAN'
Canada
Is this use case feasible?
Thanks
For example:
Let's say my list contains the following values
Book
Bookcase
Briefcase
Chair
Canada
I would like for the user to be able to start typing any portion of the list items for example:
user types 'C'
the combobox is searched for the letter C and finds:
Bookcase
Briefcase
Chair
Canada
the user continues to type and types the letter 'A', now the list is narrowed down to anything that contatins 'CA'
Boookcase
Briefcase
Canada
the user continues to type and types the letter 'N', now the list is narrowed down to anything that contatins 'CAN'
Canada
Is this use case feasible?
Thanks