PDA

View Full Version : enabling type-ahead feature in datagrid and combobox


bidur
01-15-2009, 03:33 PM
hi all,
There is some sort of type ahead facility in flex dataGrid and Flex Combobox .
i.e. if we press "a" then it goes to the next item starting with
"a", but if we type "d" (say) then it will go to the next one starting
with "d" rather than the next one starting with "ad".
Obviously we then
need a key to reset it again (For eg ESC or some other key) so that it forgets the previous keys and starts again e.g. "a","d",ESC,"e" will go to the next
one starting with "e".

It would be great if i could get some sample examples for enabling this facility.

Thanks

Peter Cowling
01-16-2009, 03:58 PM
Hi,

You are looking for an autocomplete facility. One you might want to check out is here (http://hillelcoren.com/2009/01/01/flex-autocomplete-latest-version/); there are others about.

____________

Art Connect (http://www.loveart-gallery.com/art-blog-reviews/2009/01/13/heart-as-arena/)

bidur
01-18-2009, 01:57 AM
Hi Peter Cowling,
thanks for your reply.

I am not looking for auto complete (Any way that example is helpful for me for my project). I am looking for Searching For e.g.
Let us have a comboBox displaying countries : Australia, Denmark, Egypt, Nepal, Norway, Spain and Uganda.

When that combobox is selected.

If we type 'A' then Australia gets selected, Then when we type 'U' then Uganda gets selected. But I want 'AU' to get selected (i.e. Australia in this case)

The same thing happens in Datagrid as well.

Thank You