Approved
Last Updated: 05 Sep 2013 10:01 by Anatoliy
Anatoliy
Created on: 23 Jan 2013 07:42
Category: FileExplorer
Type: Bug Report
0
IMPROVE Default file system content provider performance for RadFileExplorer
have found similar issue :  http://www.telerik.com/support/pits.aspx#/details/Issue=5296
which look like has been fixed, but unfortunately for following case it doesn't:
We still have performance issue, in following situations:
   - when content root folder contains few (1-5) subfolders
   - one of subfolder contains lot of (200-500) sub-subfolders 

then first time RadFileExplorer  loading to long (aproximatelly 3-5min). after some researching has been found that problem in the method:  

     private bool HasSubFolders(string virtualPath);

which instead of simply check that folder isn't empty (exist any one file or directory)  always construct complete version of the subtree (in the example above - subtree contains 200-500 subfolders, each of them checking for content, permission etc - that is why it takes time). Probable to check that node  HasSubFolders, RadFileExplorer  could execute new virtual method of the FileSystemContentProvider bool HasSubFolders. In that case: FileSystemContentProvider (or inherited classes) will decide that Folder contains SubFolders.
0 comments