This is a migrated thread and some comments may be shown as answers.

Very slow loading

8 Answers 479 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Pavel Trnka
Top achievements
Rank 1
Pavel Trnka asked on 23 Jul 2009, 01:35 PM
Hi,

I'm using Q2 release of RadFileExplorer with Sharepoint provider and it's really REALLY SLOW. It takes about one or two minutes to show approx 50 doc files.

I set the debug parameter to false, but nothing happend. Any ideas how to speed up the loading? Using IE 7 and IE8 browser.

Thank you very much for your answer

BR

Pavel

8 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 28 Jul 2009, 01:47 PM
Hello Pavel,

The provided information is not enough for us to determine the reason for the problem. Could you please provide little bit more information about the behavior that you experience?
  • Do you use this provider or you have implemented a custom provider? In case that you use a custom provider, please try the SPContentProvider provider in such scenario and let us know the result.
  • Please test the same application under FF browser and see how it behaves.

We are looking forward to hearing from you.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
bradhh
Top achievements
Rank 2
answered on 20 Aug 2009, 04:04 PM
I'm having the same problem with slow loading. I'm using the standard file system provider, it is reading from an upload directory on my website. There are about 375 files in one folder and close to 500 in another. I understand that that's a lot, but I can't get my users to organize them better, they all insist on placing files in those folders. In each case it takes about a minute to load the control in IE7.

I've set debug to both true and false in the web.config, and it seems to have no effect either way.

This is on an intranet, and the users are required to use IE7 under most circumstances. I have noticed that FF3 performs considerably better, but that's not an option for them.

Do you have any suggestions on how to improve performance on IE?

Thanks -
Brad
0
Georgi Tunev
Telerik team
answered on 21 Aug 2009, 08:28 AM
Hello Brad,

Try to set the AllowPaging="true" in the RadFileExplorer's declaration (it is disabled by default). This enables paging for the RadGrid control.

I hope this helps.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
TCF Schepers
Top achievements
Rank 2
answered on 24 Aug 2009, 10:18 AM
Hi Georgi,

I am experiecing the same problem. It runs fine under Firefox and IE8. However, IE7 seems to be the problem (or IE8 under compatibility mode). I haave 572 files and folders to load, and it takes ages.

It returns no error whatsoever. Paging seems to be the trick, but it's not a nice solution.

Hope this helps.

Regards,

Thomas Schepers.
0
Georgi Tunev
Telerik team
answered on 24 Aug 2009, 11:52 AM
Hello Thomas,

Have you disabled the debugging in the web.config? You could also use the ExplorerMode property with value FileTree. In this case the file explorer control shows the files and folder inside the TreeView only. The tree view uses server-side binding and it is faster that the client-side binding of the Grid.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amey
Top achievements
Rank 1
answered on 26 Aug 2009, 09:51 PM
Hi All,

I had a similar thread with Telerik re: the incredibly slow FileExplorer as part of the RadEditor.  It was converted to a ticket as I had to provide a sample piece of code, so I've pasted it below.  Final answer was essentially that they will work to improve it.  I wouldn't recommend using it with any substantial amount of images until performance is improved.


  • Posted on on Aug 20

    Hi Christian,

    Unfortunately, it is not possible to go back to the old file browser manager without downgrading to the Q3 build of RadControls for ASP.NET AJAX.

    I talked with our lead RadFileExplorer developer and he told me that we will make performance improvements in the file browser dialogs and we will do our best to decrease the loading time of multiple images as in your scenario.

    Best regards,
    Rumen 
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal
    Check out the tips for optimizing your support resource searches.
  • christian

    Posted on on Aug 19

    Hi Rumen,

    Is there a way for us to go back to the old file manger -  while it has a nicer UI, from our perceptive this was a significant downgrade in performance from the old version.  Not ideal when we're paying a lot of money for the tool.

    Christian
  • Posted on on Aug 19

    Hi Christian,

    Thank you for the provided demo link.

    I launched the image manager in IE and FF and expanded Node 1 in the treeview control. I noticed that the ajax request to the server was sent for 1-3 seconds to the server in both Internet Explorer and Firefox. However after that when the AJAX request was returned from the server to the client then Node 1 expanded much faster in Firefox and fairly slow in Internet Explorer. 

    This behavior is not controlled by our Treeview control but by the browser's JavaScritp engine. The Firefox's js engine is much optimized over this of IE and it renders the returned from the server information much faster. Since this is a browser behavior we are unable to help you because the rendering speed of such large amount of images slow down the javascript engine of the browser and it is needed more time for the tree items rendition.

    All the best,
    Rumen 
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal
    Check out the tips for optimizing your support resource searches.
  • christian

    Posted on on Aug 18

    Hi FIko,

    We're put up an example for you to review - you'll see how slow the image manager is.

    http://racer.haymarketmedia.com

    PLease let me know if you need anything else.

    Christian
  • Posted on on Aug 12

    Hi Christian ,

    I converted this thread to support ticket. I did this, because I need to take a closer look over your project, but you cannot attach files to a forum thread. Could you please attach your project including the Telerik.Web.UI.dll and the web.config files used? Also, please make sure that I can run the project on my side. I will check it and do my best to provide you with a solution that will fit in your scenario.    

    About the versions : both versions 2009.2.701.20 and 2009.2.701.35 are the same. The only difference is that the first one is built for .NET Framework 2.0 and second one 3.5. The last two numbers shows exactly that.

    I am looking forward to hearing from you.

    All the best,
    Fiko 
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal
    Check out the tips for optimizing your support resource searches.
  • christian

    Posted on on Aug 11

    Hi Fikio,


    We do have the Q2 2009 version.

    But, we just downloaded there latest stable release dll and ithas a version number of: 2009.2.701.20 and we have 2009.2.701.35. We haddownloaded the complete msi package (and not just dll).  Which version should we be using?

    We have done all changes suggested by you including compilationdebug = false. The behavior we are seeing is that when you click on a folder inthe treeview it takes a long time to load the images in the treeview.


    We still see very slow load times (~30 seconds) everytime you open (click on) a folder.


    What are next steps for assistance - can we get someone on the phone to walk through our implementation with us?


    Thanks

    Christian

  • Posted on on Aug 11

    Hi Christian,

    I am not quite sure what may cause the problem in your case. I tested the control with 200+ files in each folder, including the Root one and there is not a significant loading delay. Could you please provide more information about your configuration? Did you apply the suggested approaches? Bellow I placed some additional information about each of the suggestions: 
    • When the ExplorerMode="FileTree" property is set then the Grid (embedded in the RadFileExplorer used in the dialogs) control does not render on the page and the files are shown in the TreeView. In this case the AllowPaging="true" will not take effect - it enables paging on the grid not on the ThreeView.
    • The third suggestion was that you need to set the debug property on the <compilation> section in the web.config to "false". This configuration should look like this:
       <compilation debug="false"
      Please note that this property needs to be set whatever the first two suggested properties are set.
    Additionally I strongly recommend you to update to the newest version of the controls - Q2 2009 (the paging feature is enabled in this version). This version is fully backward compatible with version that you are currently using.

    I hope this helps.

    Sincerely yours,
    Fiko 
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal
    Check out the tips for optimizing your support resource searches.
  • christian

    Posted on on Aug 7

    Hello,

    We made the changes, but paging does not work with FileTree and its still unacceptably slow.   Does this tool load all images when you open the image manager, and if so can we change it to load when the user clicks on an image?

    The previous version of radeditor has a much faster Image and File Manager - is there a way to not use this new version?

    Thanks
  • Posted on on Aug 6

    Hello christian ,

    I apologize, I was not clear enough in my previous response. In the newer versions of theRadEditor control we use RadFileExplorer in the Editor's dialogs. You need to use theExternalDialogsPath   property and set external dialogs path in order to customize behavior of the dialogs. Then you could apply the suggested changes in the RadFileExplorer's declaration in the FileBrowser.ascx file. For your convenience I have attached a fully working project to the thread. 

    I hope this helps.

    All the best,
    Fiko 
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal
    Check out the tips for optimizing your support resource searches.
  • christian

    Posted on on Aug 5

    Aren't these only for RadFileExplorer?  We are using Radeditor.


  • Posted on on Aug 5

    Hello Hristian ,

    The good news is that there are many improvements in this area. In the build that you used you could apply the following approaches: 
    • Paging for folders that have >100 files. You need to set the AllowPaging="true" in theRadFileExplorer's declaration (it is disabled by default).
    • You could use the ExplorerMode property with value FileTree. In this case the file explorer control shows the files and folder inside the TreeView only. The tree view uses server-side binding and it is faster that the client-side binding of the Grid.
    • Additionally I recommend you check the debug section in the Web.config. The debug should be set to "false". 

    I hope this helps.

    Kind regards,
    Fiko 
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal
    Check out the tips for optimizing your support resource searches.
  • christian

    Posted on on Aug 3

    Hello,

    We upgraded to Rad Editor 2009.2.701.35 from 2008.3.1314.35 - and it now appears that our Image Manager has slowed down significantly in terms of browsing folders.  We have a large number of images in each folder (200), and many many folders.  This is extremely frustrating for our end users - is there anything we can tweak to address this issue?

    Thanks

  • 0
    Charles
    Top achievements
    Rank 1
    answered on 25 Aug 2016, 11:58 AM
    Has anyone solved this yet?

    I'm having the same issue in my CMS which uses the ImageManager (Telerik version: 2013.3.1114.35), which in turn uses the RadFileExplorer, which takes too long to load files when the folder has too a lot of images (eg. 1000+, there is no way round it).

    So I created a test website to investigate this issue. In IIS for this website, it has a virtual directory called "assets" which is mapped to another folder called "assets" Azure fileshare (eg. \\myfileshare.file.core.windows.net\assets)

    Therefore to access the files from my test website, you can just go to "www.abc.com/assets/bob.jpg".
    In my test website, I have two methods of viewing files from my file share.

    The 1st is the RadFileExplorer:

    cntrlRadFileExplorer.Configuration.ViewPaths = New String() {myVirtualPath}
    cntrlRadFileExplorer.Configuration.UploadPaths = cntrlRadFileExplorer.Configuration.ViewPaths
    cntrlRadFileExplorer.Configuration.DeletePaths = cntrlRadFileExplorer.Configuration.ViewPaths

    The 2nd is just a button which when clicked will do this:

    Protected Sub btnTestDirectoryInfo_Click(sender As Object, e As System.EventArgs) Handles btnTestDirectoryInfo.Click
            'Testing this using DirectoryInfo because Telerik says the RadFileExplorer's content provider uses the GetFiles and GetDirectories methods of the "System.IO.DirectoryInfo" - http://www.telerik.com/forums/virtual-directory-not-working-with-radfileexplorer
            Dim myDirectoryInfo As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(myPhysicalPath)
            Dim myFileInfo As System.IO.FileInfo() = myDirectoryInfo.GetFiles("*.*")
            Dim myFolders As System.IO.DirectoryInfo() = myDirectoryInfo.GetDirectories()
            For Each x In myFileInfo
                txtFiles.Text &= x.FullName & vbCrLf
            Next
        End Sub

    The 2nd method list all the files almost instantly no matter how many files is in the assets directory, however the 1st method with the RadFileExplorer takes too long when there is lots of files, with less files it works fine.

    I have search throughout the web and lots of articles here and still have not found a solution. Some suggested creating a new FileProvider for the RadFileExplorer which I have tried, for example, I created a new provided called "ExtentedFileProvider.vb" and overriden the "Resolve Directory" method:

    Public Overloads Overrides Function ResolveDirectory(ByVal path As String) As Telerik.Web.UI.Widgets.DirectoryItem
            'get the directory information
            Dim baseDirectory As Telerik.Web.UI.Widgets.DirectoryItem = MyBase.ResolveDirectory(path)
            'remove files that we do not want to see
            Dim files As New System.Collections.Generic.List(Of Telerik.Web.UI.Widgets.FileItem)()
            For Each file As Telerik.Web.UI.Widgets.FileItem In baseDirectory.Files
                If Not file.Name.StartsWith("Blue") Then
                    files.Add(file)
                End If
            Next
            Dim newDirectory As New Telerik.Web.UI.Widgets.DirectoryItem(baseDirectory.Name, baseDirectory.Location, baseDirectory.FullPath, baseDirectory.Tag, baseDirectory.Permissions, files.ToArray(), baseDirectory.Directories)
            'return the updated directory information
            Return newDirectory
        End Function

    But I'm not sure how you can change this to improve performance? Since it uses the base "ResolveDirectory" method to recurive loop itself. Is there anyway I can chagne it to use the standard System.IO.DirectoryInfo to get a list of file instead?

    0
    Vessy
    Telerik team
    answered on 30 Aug 2016, 10:27 AM
    Hi Charles,

    I have just replied your other post on the matter, you can refer my answer here:
    www.telerik.com/community/forums/radfileexplorer-very-slow

    Regards,
    Vessy
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
    Tags
    FileExplorer
    Asked by
    Pavel Trnka
    Top achievements
    Rank 1
    Answers by
    Fiko
    Telerik team
    bradhh
    Top achievements
    Rank 2
    Georgi Tunev
    Telerik team
    TCF Schepers
    Top achievements
    Rank 2
    Amey
    Top achievements
    Rank 1
    Charles
    Top achievements
    Rank 1
    Vessy
    Telerik team
    Share this question
    or