In the application, we have disabled upload, delete and rename functions, but we still can drag and drop files. Is there any way can disable drag and drop files, please?
Regards,
Lan
Rumen
Telerik team
commented on 01 Apr 2022, 02:42 PM
Hi Lan,
The drag and drop is enabled, but what happens when you drag a file into another directory? Do you get an alert explaining that the operation is not allowed due to insufficient permissions?
If you need more control over the drag and drop events of the TreeView and the Grid, you need to register the external dialogs of RadEditor and attach to the OnClientFilesDropping event of the RadFileExplorer control in the FileBrowser.ascx file. This event is cancellable with args.set_cancel(true).
Hi Lan,
The drag and drop is enabled, but what happens when you drag a file into another directory? Do you get an alert explaining that the operation is not allowed due to insufficient permissions?
If you need more control over the drag and drop events of the TreeView and the Grid, you need to register the external dialogs of RadEditor and attach to the OnClientFilesDropping event of the RadFileExplorer control in the FileBrowser.ascx file. This event is cancellable with args.set_cancel(true).
Thank you Rumen,
Your solution works!
Regards,
Lan