add new tag by "enter"

2 posts, 1 answers
  1. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 20 Apr Link to this post

    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

  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 22 Apr Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top