We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I change the root folder of FileExplorer at runtime by JavaScript?

How can I change the root folder of FileExplorer at runtime in JavaScript?
And I wish the component would support multiple root folders.

1 Reply

KR Karthik Ravichandran Syncfusion Team June 19, 2017 08:59 AM UTC

Hi Justin, 
 
Thanks for contacting Syncfusion support. 
 
Query 1: How can I change the root folder of fileexplorer in runtime 
You can achieve your requirement by using the path API of ejFileExplorer.Please refer the below code block. 
 
[script] 
var obj = $("#fileExplorer").ejFileExplorer("instance"); 
obj.option("path", Path); 
 
 
For your convenience, we have attached the sample in the below link. 
 
 
Query 2:  I wish the component would support multiple root folders. 
We have addressed for this query in the incident created under your account. Please check from the following link. 
 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Karthik R 


Loader.
Live Chat Icon For mobile
Up arrow icon