This is a migrated thread and some comments may be shown as answers.

MinLength 0?

3 Answers 123 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 19 Mar 2012, 12:01 AM
I would like for my autocomplete box to populate on focus and then filter down as the user types, essentially giving it a minlength of zero.  Just setting the minlength to 0 doesn't seem to do it.  I also tried using a combobox instead but it only makes a single web service call and then filters down the data from the call (instead of retrieving fresh data). 

The reason that doesn't work for me is the resulting data can be anywhere from 0 to thousands, and my web service only returns the top 20 results, so I need to refreshing the datasource as the user types.  The autocomplete does this perfectly, but like I said I just can't get it to populate without any user input. 

What do you recommend?

3 Answers, 1 is accepted

Sort by
0
Kjell
Top achievements
Rank 1
answered on 10 Apr 2012, 03:33 AM
I was not able to get this working so I am approaching it from another angle.  If I can get the menu to populate via a click then that is good enough.  I have the datasource refreshing, however the autocomplete still wont display any items if the box is blank (even if the datasource contains items).  I also noticed there is no .open() option.  Any suggestions?
0
Dan
Top achievements
Rank 1
answered on 22 Aug 2012, 06:52 PM
Any answers to this question???
0
ping0
Top achievements
Rank 1
answered on 25 Oct 2012, 08:37 AM
Tags
AutoComplete
Asked by
Kjell
Top achievements
Rank 1
Answers by
Kjell
Top achievements
Rank 1
Dan
Top achievements
Rank 1
ping0
Top achievements
Rank 1
Share this question
or