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

Hide or Rename Parent Node

3 Answers 79 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Dean Workman
Top achievements
Rank 1
Dean Workman asked on 03 Mar 2010, 01:02 AM
Does any one know if there is a way to hide or rename the paret (top most) node in the tree?  I created a custom provider so I can point my FileExplorer to a physical path but the parent node is always the name of the root folder.  I would like to name it but will settle for hiding it.

Thanks,
Dean

3 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 04 Mar 2010, 02:22 AM
I did it by setting a root path for each of the folders under the root folder. That way the root folder is not shown.
sFilePaths = "a,c" 
string[] aFilePath = sFilePaths.Split(',');  
fileExplorer.Configuration.ViewPaths = aFilePath;  
fileExplorer.Configuration.UploadPaths = aFilePath;  
fileExplorer.Configuration.DeletePaths = aFilePath;  
 
0
Dean Workman
Top achievements
Rank 1
answered on 11 Mar 2010, 04:31 PM
Jim,

Thanks for the reply.  But I don't understand what you mean by setting the "Root" path.
0
Accepted
Jim
Top achievements
Rank 1
answered on 11 Mar 2010, 06:09 PM
Lets say your parent node is: docs/
and inside docs you have the folders you want to display:
folder1/
folder2/
folder3/
folder4/

You can just set all your path settings to point to all the sub folders individually instead of the root folder like so:
sFilePaths = "~/docs/folder1/,~/docs/folder2/,~/docs/folder3/,~/docs/folder4/"    
string[] aFilePath = sFilePaths.Split(',');        
fileExplorer.Configuration.ViewPaths = aFilePath;        
fileExplorer.Configuration.UploadPaths = aFilePath;        
fileExplorer.Configuration.DeletePaths = aFilePath;       
 

Maybe I misspoke when I said root folder. What I meant was that you can point your view, upload, and delete paths to multiple folders, and you will get the result you want. With the settings above, your file explorer would not display a folder called docs.
Tags
FileExplorer
Asked by
Dean Workman
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Dean Workman
Top achievements
Rank 1
Share this question
or