Deleted folders still visible/unzipped folders appear as blanks

2 posts, 0 answers
  1. Tony
    Tony avatar
    3 posts
    Member since:
    Jan 2013

    Posted 19 Mar 2013 Link to this post

    While working on implementing a custom FileBrowserContentProvider, I've come across two issues which I could use some guidance on.

    First, when deleting folders, they still appear in the right-hand pane of the FileExplorer control even though they have been removed from the TreeView.

    Second, I've implemented automatic unzipping to the StoreFile method following the work of several previous posters. This appears to cause issues for the TreeView, which renders any folders inside of the extracted folders as blank items.

    Has anyone else encountered similar issues which could shed light on the cause of these behaviors? Also, clicking the refresh button in the toolbar at the top of the control appears to "fix" both issues. Is there a way to trigger this refresh behavior from the code-behind?
  2. Vessy
    Vessy avatar
    2098 posts

    Posted 22 Mar 2013 Link to this post

    Hi Tony,

    The refresh of the TreeView could be forced by clearing its cache. For instance, you could do it in the ItemCommand event-handler:
    protected void FileExplorer1_ItemCommand(object sender, RadFileExplorerEventArgs e)
        if (e.Command == "DeleteDirectory" || e.Command == "DeleteFile")

    Regarding you second - i tried to reproduce the described behavior, but to no avail. For my test I have used the code from this code library - RadFileExplorer Extensions. If you are not using the code from it, could you try also this approach? If it does not help I will need to examine your code on my side and to see what might be causing the problem. I such case it would be of a great help if you prepare a sample fully runnable project and send it to us for further investigation.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top