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

How to display all items in the autocomplete widget

3 Answers 426 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Douglas
Top achievements
Rank 1
Douglas asked on 26 Nov 2013, 09:07 AM
Hi,

Is it possible to display all available items in autocomplete widget without changing the source code?

I’ve got something like this, that is an attempt to open the options when textfield receives focus, but it is not working.

 $("#myAutoComplete").kendoAutoComplete({
dataSource: ["Item1", "Item2"],
delay: 100,
minLength: 0
});

 $("#myAutoComplete").focus(function () {
$("#myAutoComplete").data("kendoAutoComplete").search("");
});

Thanks
Doug

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 27 Nov 2013, 10:04 AM
Hi Doug,

The AutoComplete widget has not been designed to return all items or to "search" by an empty string.

Theoretically, you could achieve the desired behavior by using server-side filtering and using some "magic" search string, that will be recognized by the web service, which will return all data items in that case.

Alternatively, if the total number of items is reasonable and will not cause a browser hang, use the ComboBox widget instead.

http://demos.kendoui.com/web/combobox/serverfiltering.html

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Douglas
Top achievements
Rank 1
answered on 04 Dec 2013, 07:53 AM
Thanks this is what we have done.
0
oasys
Top achievements
Rank 1
answered on 03 Feb 2017, 04:36 PM

The feature has not yet been implemented but you could have a look here : http://dojo.telerik.com/utosu/3 
There are still some css adjustments to be done with the close icon when the list is shown.

It would be nice if this would be inserted in a future release. 

Tags
AutoComplete
Asked by
Douglas
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Douglas
Top achievements
Rank 1
oasys
Top achievements
Rank 1
Share this question
or