MultiSelect > delete Entry by Backspace

3 posts, 1 answers
  1. Flo
    Flo avatar
    6 posts
    Member since:
    Apr 2014

    Posted 26 Jun 2014 Link to this post

    Hy,

    I'm using the MultiSelect Widget. Standard Functionality is that if the user presses [Backspace] the previous selected item will be removed. In my case I don't want this behavior - if user presses [backspace] nothing should be done except removing single chars if there are any one.

    I tried a jquery function on the keydown event to avoid the standard behavior of deleting the previous added item but this is firing after the item is deleted! So it is too late!

    Is there any chance to disable the behavior of deleting the previous added item?

    Greetings from Austria
    Florian
  2. Answer
    Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 30 Jun 2014 Link to this post

    Hi Florian,

    This behavior is currently not supported out of the box, however it could be achieved using a custom solution. For example you could reverse the order in which the keydown event handlers are executed and prevent the event propagation if the pressed key is backspace. Here is a proof-of-concept example illustrating the above approach.

    Regards,
    Alexander Popov
    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
  4. Flo
    Flo avatar
    6 posts
    Member since:
    Apr 2014

    Posted 01 Jul 2014 in reply to Alexander Popov Link to this post

    THX Alexander! This works fine!
Back to Top