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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Optimization of loading folders

Thread ID:

Created:

Updated:

Platform:

Replies:

149153 Nov 15,2019 09:17 PM UTC Nov 18,2019 12:32 PM UTC JavaScript - EJ 2 1
loading
Tags: FileManager
William
Asked On November 15, 2019 09:27 PM UTC

I'm using the localized FileManager and need to programmatically set the folder path based on inputed text.  They always share the same root, set in Controllers/FileManagerController.cs.  However, this folder is extremely large and it seems it loads this entire root folder and takes a while to load. Is there any way to skip loading this entire folder, and just load the subfolder specified in path like following:

     var filemanagerInstance = new ej.filemanager.FileManager({
          ajaxSettings: {
               url: hostUrl + 'FileManager/FileOperations',
               getImageUrl: hostUrl + 'FileManager/GetImage',
               uploadUrl: hostUrl + 'FileManager/Upload',
               downloadUrl: hostUrl + 'FileManager/Download'
          },
          view: "Details",
          allowDragAndDrop: true,
          path: "/" + ordernum.toString()
     });

Keerthana Rajendran [Syncfusion]
Replied On November 18, 2019 12:32 PM UTC

Hi William,  
 
We have checked your reported query to skip loading the entire folder. In file manager component, using path property, the request will be sent to the server based on each treeview child nodes. In that case, there is no possibility to skip loading the entire folder. If you don’t want to load the entire folder structure. In that case, you have to directly set root path as a specified path in controller side. It will load the particular folder as a root path and display only the corresponding sub-folders. There is no need to set the path property for file manager component. 
 
Please let us know, if you have any concerns. 
 
Regards, 
Keerthana. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon