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

Deleted folders still visible/unzipped folders appear as blanks

1 Answer 29 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 20 Mar 2013, 04:57 AM
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?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 22 Mar 2013, 05:51 PM
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")
    {
        FileExplorer1.TreeView.Nodes.Clear();
    }
}

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,
Vesi
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.
Tags
FileExplorer
Asked by
Tony
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or