Disable Keyboard shortcut of "del" and "BackSpace"

2 posts, 0 answers
  1. Paul Leamy
    Paul Leamy avatar
    4 posts
    Member since:
    Aug 2012

    Posted 11 Sep 2016 Link to this post

    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 ?



  2. Ianko
    Ianko avatar
    1738 posts

    Posted 14 Sep 2016 Link to this post

    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


    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top