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

Stop Combobox drop-down after value is removed

3 Answers 88 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Emma
Top achievements
Rank 1
Emma asked on 09 Jul 2013, 12:30 PM
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

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 11 Jul 2013, 02:19 PM
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!
0
Emma
Top achievements
Rank 1
answered on 11 Jul 2013, 03:45 PM
Hi Petur,

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

Thanks
Emma
0
Petur Subev
Telerik team
answered on 12 Jul 2013, 12:35 PM
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!
Tags
ComboBox
Asked by
Emma
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Emma
Top achievements
Rank 1
Share this question
or