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

Speed search / force selection similiar to Telerik MVC Extension ComboBox

3 Answers 85 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Mar 2013, 05:01 PM
Is it possible to have forced list matching similar to the ComboBox in the non-Kendo controls (http://demos.telerik.com/aspnet-mvc/razor/combobox/clientsidebinding) in the Kendo ComboBox? It seems there is no way to prevent the user from typing whatever they like into the input box.

This functionality also exists in the ASP.NET Ajax Combobox (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx)

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 11 Mar 2013, 02:19 PM
Hello Michael,

 
The ComboBox widget is designed to allow custom values and disabling this behavior is not supported. I will suggest you use DropDownList widget which does not allow custom values.

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 11 Mar 2013, 07:17 PM
Thanks for the response. We've considered using that, but by using it we lose the ability to have 'true' autocomplete (being able to backspace the currently entered text without going back in the browser). Since this exists in both the Telerik MVC Extensions and the ASP.NET AJAX controls I am very surprised this doesn't exist in the KendoUI controls. Is there a way we can access the client side 'keyup' event on the Kendo ComboBox such that we might develop this functionality internally?
0
Georgi Krustev
Telerik team
answered on 12 Mar 2013, 10:28 AM
Hello Michael,

 
Actually, the described functionality is supported only in ASP.NET AJAX controls. The Telerik MVC Extensions like the Kendo UI does not support this option.
In order to accomplish your goal you can wire the change event and check whether the entered value is custom or not. Depending your requirement, you can delete custom values or to pre-select a default one.
Check this jsFiddle demo which shows how to achieve this.

Greetings,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Michael
Top achievements
Rank 1
Share this question
or