This is a migrated thread and some comments may be shown as answers.

File context menu Delete try to delete directory

1 Answer 46 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Dédé
Top achievements
Rank 1
Dédé asked on 15 Jul 2009, 02:42 PM
Hi,

I am using 2009 Q2. I have my custom FileBrowserContentProvider.

When I right-click on a file, and choose "Delete", the RadFileExplorer call the DeleteDirectory method.
Should it call DeleteFile instead ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 16 Jul 2009, 12:47 PM
Hello,

This is not normal - the file explorer should call the DeleteFile method when you select a file and chose Delete from the context menu. See if this happens with the default content provider as well. If it does - then send us a simple page where we can see the problem. If the default content provider is OK, then the problem is in the way you create the DirectoryItem and FileItem objects in your custom content provider. Double-check the information for custom content providers in our online documentation:

http://www.telerik.com/help/aspnet-ajax/radfileexplorer-custom-filebrowsercontentprovider.html
http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.widgets.directoryitem-_ctor.html
http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.widgets.fileitem-_ctor.html




All the best,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FileExplorer
Asked by
Dédé
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or