The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
SNSasikala Nagarajan Syncfusion Team May 11, 2015 12:38 PM UTC
Hi Robert,
Thanks for using Syncfusion products,
We have analyzed your requirement (keep all keyboard functionality other than removing nodes with the delete key) and we would like let you know that there is no inbuilt option to achieve this requirement. But we can achieve this by overriding the treeivew’s key press function to cancel the key press event if delete key is pressed.
Please refer the below code snippet
var click = ej.TreeView.prototype._KeyPress;
ej.TreeView.prototype._KeyPress = function (e) {
// {handle the custom event or method here}
if (e.keyCode == 46) returnfalse;
else click.call(this, e); }
For your convenience we have prepared the simple sample based on this it can be downloaded from below location.