Stop Combobox drop-down after value is removed

4 posts, 0 answers
  1. Emma
    Emma avatar
    2 posts
    Member since:
    Jul 2012

    Posted 09 Jul 2013 Link to this post

    Hi,

    Is it possible to stop the combo-box drop down from dropping down when a value is removed?

    It can be reproduced on here http://demos.kendoui.com/web/combobox/api.html by selecting a value, highlighting it and pressing the delete key. The drop-down drops down, I would like to prevent that.

    Because I have several drop-downs appearing above eachother and when the user is emptying the values, and trying to move to the next one down they are accidently selecting the values again. They can of course use tab and delete but I was curious as to whether this behaviour could be disabled.

    Thanks
    Emma
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 11 Jul 2013 Link to this post

    Hello Emma,

    I am afraid I do not understand the situation. When pressing delete on the keyboard nothing actually happens - the DropDownList remains opened.

    Could you create a screencast or explain in more details so we can better understand what you are after?

    Kind Regards,
    Petur Subev
    Telerik
    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. Emma
    Emma avatar
    2 posts
    Member since:
    Jul 2012

    Posted 11 Jul 2013 Link to this post

    Hi Petur,

    Thats the problem, I don't want it to remain open when I remove the value.

    Thanks
    Emma
  5. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 12 Jul 2013 Link to this post

    Hello Emma,

    Thank you for clarifying. Unfortunately there is not built in option to make the ComboBox behave like this.

    I can suggest you to bind to the change event of the visible input element and close the ComboBox programaticaly if there is no value.

    Here is example:

    http://jsbin.com/exiyec/2/edit


    Kind Regards,
    Petur Subev
    Telerik
    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