AutoComplete
Advanced Flex AutoComplete component which supports browsing, selecting and ordering multiple items.
Important Info
- License: The component is freeware. You’re welcome to use it anyway you’d like, I just ask that you send back any bug fixes or improvements.
- Support: I try as hard as possible to respond to all questions within a day. I’ve been using the component for a while now and am pretty confident that it works well. If you’d like to extend it I’m happy to work with you to get your feature working.
Version History
- 1.2 released on August 4th, 2011
- 1.1 released on October 25th, 2010
- 1.0 released on July 3rd, 2009
- 0.98.2 released on May 11th, 2009
- 0.98.1 released on April 7th, 2009
- 0.98 released on March 12th 2009
- 0.93 released on February 1st, 2009
- 0.91 released on January 1st, 2009
- 0.90 released on November 10, 2008
Other Options
A single solution usually doesn’t work for everyone. Here are some other excellent Flex Autocomplete components which may better fit your needs.
- Flextras AutoCompleteComboBox – comes with support
- Tink’s FilterComboBox – more lightweight
- Flashcommander’s Flex 4 AutoComplete – uses Spark
807 Responses to “AutoComplete”
Trackbacks / Pingbacks
- - October 12, 2009
- - January 11, 2010
- - February 14, 2010
- - March 27, 2010
- - March 27, 2010
- - April 1, 2010
- - April 14, 2010
- - May 9, 2010
- - August 4, 2011
- - February 12, 2012
Is there any way to configure the component such that an entered string can be “custom” (i.e. not in the list) but its name match the prefix of one or more items in the list?
For example, I want to enter “goo” but one of the options in the list is “goober”. Right now, it seems no matter what I do, “goober” would always be what gets selected.
I realize this may be a bit of an edge case, but it’s one for which I really hope there can be a clean work-around. Thanks.
If you hit escape to close the popup you should be able to enter any value.
Hope this works as a solution for you…
Hi! First, thank you for this wonderful component.
I have a question.
Why seems like text property in AutoComplete component always returns an empty string despite it appears correctly into the textinput box?
_tiNotesBrief.text = “value”;
trace(“TEXT SET ” + _tiNotesBrief.text);
last trace printout an empty string =(
Thanks
Text is a read-only property which returns the text of the selected items (ie, “one, two, three”).
To set the search string which appears in the component you can set the searchText property.
To set the selected item(s) you want to use either selectedItem, selectedItems or selectedItemIds.
Hope this helps
i don’t get why i can’t reply to your last post… anyway…
what if i initialize AutoComplete component with a custom string that’s not any of the ones into the dataProvider list?
if no changes are made, i guess no selectedItem will be set and i can’t get back my string.
am i wrong?
thanks
Davide
I think it would depend on what allowNewValues is set to.
allowNewValues is set to true
Thanks, Hillel; that does work. I wonder, though, if anyone else might find it useful to have a mode where no item in the drop down is selected by default but instead would require arrowing down or clicking on an item to explicitly select it. I think that might be the more intuitive solution to this particular issue.
I agree, I’ve had requests from other users for this change. I’ll try to include it in the next release.
Great..but really needs to be rewritten for spark. Also api is cluttered…i feel the advanced features need to be broken out into a separate module.
Yeah, I definitely agree… just don’t have the time.
btw, is there a simple way to have the prediction drop box using a spark combobox?
Hi Hillel,
I have a problem regarding the arrow down key not working properly on the dropDownList.
1. When typing only one or two letters as a searchKey, scrolling the dropdown results is working just fine.
2. If I input in the searchKey a long string that has no results, then repeating the search done in #1, the list always highlights the first item on the dropdown results.
(i.e. when pressing the arrow down key, it will move down, but it will immediately return to the first item in the list)
Please help. Thank you.
I’m having trouble replicating the issue. If you could create a sample app demonstrating the issue I’d be happy to help you debug it.
Excellent component!
Request: There should be a https://github.com/hillelcoren with the Autocomplete as an own repo or together with some other of components you may want to share.
That way it would be much easier for the rest of us to contribute to feature requests such as
As a user
I want to have the possibility to always show the dropdown
So that I don’t have to type to show all my options.
OC
Thanks for the feedback. I definitely agree, it’s on my list of things to do… The code is currently available on google code (http://code.google.com/p/flex-autocomplete/) but Git would be a better choice now.
hello,
i want to use this .swc file in flash Professional CS5.5 but it’s getting some unwanted error so please help me that it is usable in flash professional application.
I’m not sure if the component works in Flash Professional, at least I haven’t tried it myself.
If you could send me the details of the error I can try to help.
hi,
i got this type of error so please tell me how to remove this and which things used insted of this in flash professional
Error : 1046: Type was not found or was not a compile-time constant: [mx.binding]::IBindingClient.
Have you tried using the Fx3 SWC?
hello,
yes i was used Fx3 swc for this implementation but it’s not working.
Hi Hillel Coren.. textinput event is not firing in this component. Can you please help me out?
whenever im entering any text in this component, test() method is not being called..
Try using the searchChange event