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.
When I did a bit more digging I found the following 1. Add a handler for EventSink_NodeCollectionChanging 2. Record the delete key press using PreviewKeyDown
Private Sub EventSink_NodeCollectionChanging(ByVal e As CollectionExEventArgs) If deletePressed Then e.Cancel = True deletePressed = False End If End Sub
DMDinesh M Syncfusion Team November 9, 2009 09:41 AM UTC
Hi Declan,
Thanks for the update. You can also use the following code to prevent a node from being deleted.
Private Sub EventSink_NodeCollectionChanging(ByVal evtArg As CollectionExEventArgs) If (evtArg.ChangeType = CollectionExChangeType.Remove) Then evtArg.Cancel = True End If End Sub