Show all files and subfolder of a folder in wwwroot in treeview

Hi Syncfusion team!

I have a folder in wwwroot for saving data file without record in database, I want to display this folder in a treeview, but after find the file path using recursion I can not populate to treeview. Please help me!



1 Reply

KR Keerthana Rajendran Syncfusion Team September 13, 2021 06:41 AM UTC

Hi Huutrungtran, 

Thanks for contacting Syncfusion support.  

We checked your query and would like to mention that TreeView is used to represent the data in a tree-like structure. We suspect that you look for a control to display the set of files/folders present within wwwroot folder. If so, then you can make use of our EJ1 FileExplorer control which displays the files based on the provided path.  

Refer to the following links for more details on EJ1 FileExplorer



We would also like to let you know about our next generation JavaScript product - Essential JS 2, in case if you are not aware of it. Essential JS 2 is fully re-written to be modular, responsive, and lightweight.  
  
We request you to have a look on the below demo and UG links for more details on EJ2 File Manager component.   



If we have misunderstood, kindly revert with clear details on your requirement with some pictorial representation(if possible) so that we can serve you better. 

Regards, 
Keerthana R.  


Loader.
Up arrow icon