how to disable drag and drop files in the image manager or document manager

0 Answers 70 Views
Editor
lan luo
Top achievements
Rank 1
lan luo asked on 30 Mar 2022, 08:42 PM

Hi Telerik Team,

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).

lan luo
Top achievements
Rank 1
commented on 05 Apr 2022, 02:48 PM

Thank you Rumen, 

Your solution works!

Regards,

 

Lan

No answers yet. Maybe you can help?

Tags
Editor
Asked by
lan luo
Top achievements
Rank 1
Share this question
or