Speed search / force selection similiar to Telerik MVC Extension ComboBox

4 posts, 0 answers
  1. Michael
    Michael avatar
    28 posts
    Member since:
    Nov 2005

    Posted 08 Mar 2013 Link to this post

    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)
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 11 Mar 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Michael
    Michael avatar
    28 posts
    Member since:
    Nov 2005

    Posted 11 Mar 2013 Link to this post

    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?
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 12 Mar 2013 Link to this post

    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!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready