Hi David ,
The required functionality is not supported by RadFileExplorer out-of-the-box.
Hiding folders from the TreeView only can be achieved using the above mentioned approach (hiding the items during the ExplorerPopulated event of RadFileExplorer.
sender, EventArgs e)
sender, RadFileExplorerPopulatedEventArgs e)
List<FileBrowserItem> items = e.List;
i = 0;
(i < items.Count)
However, the hidden folders will not be accessible because of how RadFileExplorer is designed. The logic behind the RadFileExplorer control, however, expects to find a folder (with the same path as shown in the Grid) in the TreeView. Such a folder, however, does not exists and this is why the operation is aborted .You can override this behavior by overriding a method in the RadFileExplorer's client-side API:
//open a subfolder in the grid
//Expand the node in the treeview that is being doubleclicked in the grid
nodeToExpand = tree.findNodeByValue(path);
//populate the grid
You can add this code to the page that hosts RadFileExplorer and then you will be able to open the folder. Please note that, however,
is a private method and such an override is not a safe operation because we can change its behavior in further releases. This is why, I do not recommend you to do this.
the Telerik team