Articles in this section
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.

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied