We have the Filemanager on a screen and depending on the role the user is they will not be able to delete files. I remove Delete from the toolbar and I also removed from the ContextMenu, but for some reason if the user clicks on file and hits the delete key they can still delete the file.
I tried to add
if (e.Command == "DeleteFile")
e.Cancel = false;
to the OnItemCommand. When I hit the delete key it will run through this logic but it still deletes the file.
I tried to add
if (e.Command == "DeleteFile")
e.Cancel = false;
to the OnItemCommand. When I hit the delete key it will run through this logic but it still deletes the file.