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

Disable Keyboard shortcut of "del" and "BackSpace"

1 Answer 261 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Paul Leamy
Top achievements
Rank 1
Paul Leamy asked on 11 Sep 2016, 03:00 PM

HI ,

We have a requirement where we need to make "Delete" and "Cut" Button disable/invisible based on specific roles which we already handled.

But we also need to disable keyboard shortcut as well when delete and cut are disable/Invisible.

Is there any way to achieve it ?

 

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 14 Sep 2016, 07:56 AM

Hello Paul,

 

You can use the editable.remove option in order to prevent the Delete command. And in order to stop the cut command, you can set the copy.enabled option to false. 

 

As for hiding the delete button from the toolbar, once added explicitly to the collection you can use only CSS to hide it. There is no available method to remove it from an already initialized tools collection.

 

These suggestions can be tested in this dojo: http://dojo.telerik.com/UxIbu

 

Regards,
Ianko
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Diagram
Asked by
Paul Leamy
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or