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
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.