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

MultiSelect > delete Entry by Backspace

2 Answers 243 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Flo
Top achievements
Rank 1
Flo asked on 26 Jun 2014, 01:29 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 30 Jun 2014, 07:56 AM
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!
 
0
Flo
Top achievements
Rank 1
answered on 01 Jul 2014, 10:36 AM
THX Alexander! This works fine!
Tags
MultiSelect
Asked by
Flo
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Flo
Top achievements
Rank 1
Share this question
or