Hide or Rename Parent Node

4 posts, 1 answers
  1. Dean Workman
    Dean Workman avatar
    4 posts
    Member since:
    Oct 2009

    Posted 02 Mar 2010 Link to this post

    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
  2. Jim
    Jim avatar
    42 posts
    Member since:
    Mar 2009

    Posted 03 Mar 2010 Link to this post

    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;  
     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dean Workman
    Dean Workman avatar
    4 posts
    Member since:
    Oct 2009

    Posted 11 Mar 2010 Link to this post

    Jim,

    Thanks for the reply.  But I don't understand what you mean by setting the "Root" path.
  5. Answer
    Jim
    Jim avatar
    42 posts
    Member since:
    Mar 2009

    Posted 11 Mar 2010 Link to this post

    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.
Back to Top