Category / Section
How to disable particular key event in TreeGrid
1 min read
In TreeGrid, we can perform various action like expand, collapse, edit and delete by using keyboard navigations. And, we can disable any of the default key actions by setting empty string for required action in keyConfigs property. This can be done in load event, please refer the following code example for this.
<script type="text/javascript"> load: function () { this.model.keyConfigs.deleteRecord = ""; //disable the delete keypress action }, </script>
A simple sample to disable the delete key action in TreeGrid is available here.