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

add new tag by "enter"

1 Answer 209 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Ran
Top achievements
Rank 1
Ran asked on 20 Apr 2016, 09:20 AM

Hi,

I try to add a new tag by clicking "enter" on the keyboard.

i found this: 

http://dojo.telerik.com/@ggkrustev/UxOvO

This example showing how to add new tag by click "comma", and would like to improve it to also support clicking enter( ==13).

Any ideas ?

 

Thanks,

Ran

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 22 Apr 2016, 07:34 AM
Hello Ran,

You will need to wire the "keydown" event of the input element. On Enter you will need to use the same logic used in the filtering event when "," is typed in order to add new item.

Please note that custom implementations fall out of the scope of the standard support service as it covers only built-in functionality of the widgets.

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