File context menu Delete try to delete directory

2 posts, 0 answers
  1. Dédé
    Dédé avatar
    60 posts
    Member since:
    May 2009

    Posted 15 Jul 2009 Link to this post

    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.
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 16 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top