ComboBox prevent typing

2 posts, 0 answers
  1. GCS
    GCS avatar
    20 posts
    Member since:
    Apr 2013

    Posted 01 Jul 2014 Link to this post

    I have been trying to figure out what properties need to be set to prevent users from typing in their own values in the combobox.  The best solution I came up with to this point was capturing the keypressed event and prevent the value from being placed in the combobox.  Is there a better solution?

    The behavior I desire is to only allow the user to use the combobox to select a value.  I know that I can handle it through validation but I do not want to let the user type in the component at all.

  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 02 Jul 2014 Link to this post

    Hello Dave,

    The Kendo ComboBox widget is designed to allow custom values along with popup suggestion box. If you would like to prevent this built-in functionality you will need to accomplish the task using additional JavaScript code. Here is a simple demo, which shows how to achieve your goal.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top