RadFileExplorer directory listing

12 posts, 0 answers
  1. David
    David avatar
    8 posts
    Member since:
    Sep 2007

    Posted 24 Feb 2009 Link to this post

    I'm trying to follow the example at RadFileExplorer Demo.  When the page loads, I'm not getting any files listed in the control.  The drive I need to get to is not on the web server.

    I've tried the following in the code behind:

    using System; 
    using System.Data; 
    using System.Configuration; 
    using System.Collections; 
    using System.Web; 
    using System.Web.Security; 
    using System.Web.UI; 
    using System.Web.UI.WebControls; 
    using System.Web.UI.WebControls.WebParts; 
    using System.Web.UI.HtmlControls; 
     
    public partial class Price_Change_price_chg : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            //Set initial folder to open. Note that the path is case sensitive! 
            this.RadFileExplorer1.InitialPath = Page.ResolveUrl("~//MUSTANG/PVOL/common/download/UniSelectReports/Apr004/");         
     
        } 
     

    I've also tried:

    this.RadFileExplorer1.InitialPath = Page.ResolveUrl("P:/common/download/UniSelectReports/Apr004/");         

    I know my capitalization is correct on the directory.  Any advice on what I'm doing wrong?

    Thanks,
    David

  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 27 Feb 2009 Link to this post

    Hi David,

    The default content provider of the file explorer control only works with files and folders from the current web application. You cannot access files on another computer or on a different drive.

    What you can do in this case is open the IIS configuration and create a virtual folder in your web application, which points to the files on the remote drive. Make sure that the appropriate ASP.NET windows user has permissions to at least read the files on the remote folder. Otherwise you might see "access is denied" errors when you try to browse with the file explorer control.


    Greetings,
    Lini
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aron
    Aron avatar
    80 posts
    Member since:
    Dec 2005

    Posted 21 Mar 2009 Link to this post

    Hello,
    I have the same issue.
    The RadFileExplorer shows all the correct folders, also allows me to create sub folders, no problems.
    However it does not show the contents of the folders.

    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"
            InitialPath="~/images/uploads">
            <Configuration SearchPatterns="*.*" DeletePaths="~/App_Themes,~/images/uploads"
                UploadPaths="~/App_Themes,~/images/uploads"
                ViewPaths="~/App_Themes,~/images/uploads">
            </Configuration>
    </telerik:RadFileExplorer>

            RadFileExplorer1.EnableOpenFile = true;
            RadFileExplorer1.DisplayUpFolderItem = true;
            RadFileExplorer1.VisibleControls = Telerik.Web.UI.FileExplorer.FileExplorerControls.All;
  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 26 Mar 2009 Link to this post

    Hi Kansa,

    If I understand correctly, the right part of the file explorer (the grid) is always empty on your page. Is that the case? Does the same result happen in all browsers (e.g. Internet Explorer, Firefox)? We are aware of a similar problem in Firefox only, when the file explorer is used in a RadWindow (http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultcs.aspx). This has already been fixed and the fix will be included in next week's RadControls service pack release. You can try downloading a recent internal build (http://www.telerik.com/account/latest-internal-builds.aspx) and see if your project works with the updated version.

    Greetings,
    Lini
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  6. Aron
    Aron avatar
    80 posts
    Member since:
    Dec 2005

    Posted 26 Mar 2009 Link to this post

    Right, works in ie 7 - no problems. In firefox, no grid.
  7. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 30 Mar 2009 Link to this post

    Hi Kansa,

    Is that with the latest internal build or the original Q1 2009 release bits? If it is the internal build, then please open a formal support ticket and send us a test page so we can verify this is a different issue and fix it in time for the service pack release.

    Greetings,
    Lini
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  8. Barnabas
    Barnabas avatar
    3 posts
    Member since:
    Jun 2009

    Posted 17 Jun 2009 Link to this post

    Hi,
    The same problem occured for me.
    I have downloaded the trial version of Your components to test it as I need a web-based filemanager, but I still did not buy it 
    (and I do not know whether my client will allow that) -so I do not expect fast or any response at all, this is just for helping You in development.

    Symptoms:
    fileExplorer control does not display its grid. To be really exact, it flashes as it loads for a fraction of a second then it is not visible 
    (not even its headers.)

    In IE7 it is OK.

    Browsers with problem: 
    IE8, Firefox 3.0.8, Chrome 2.0.172.31.

    In IE8 setting meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" or "IE=7" on a per page basis fixes the problem.

    Thank You and best regards,

    Barna

  9. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 18 Jun 2009 Link to this post

    Hi Barna,

    As I mentioned before, we have had reports about a similar issue a while ago when IE 8 was first released, but we fixed the problems and the current version of the control (2009.1.527) should be OK. Do you see the same problem on our site (http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/default/defaultcs.aspx) or is it just in your application? What skin are you using? Do you have extra CSS on the page for the FileExplorer or some other Telerik controls (e.g. RadAjaxPanel, AjaxLoadingPanel, etc.).

    You can also try downloading the new Q2 2009 beta release and see if it makes a difference (http://www.telerik.com/community/forums/aspnet-ajax/beta/beta-for-q2-2-9-is-now-available.aspx). The FileExplorer from the Q2 2009 release loads faster, because it no longer makes extra AJAX requests when the page is first loaded in the browser. This means that the grid should not "flash" due to the Ajax loading panel showing and hiding.

    Best wishes,
    Lini
    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.
  10. Barnabas
    Barnabas avatar
    3 posts
    Member since:
    Jun 2009

    Posted 18 Jun 2009 Link to this post

    Hi Lini,

    I try it, and i check back afterwards.

    Anyway, It is displayed correctly on Your page.

    My "application" is the donwloaded FileExplorerCustomProvider example without any modification, I use Visaul Studio 2008 SP1.

    If I modify the code and show only the Grid part of the fileExplorer, it displays correctly.

    If I do not display the path, then the bottom of the component is displayed incorrectly in each browsers.

    So, thanks for the answer, I go and try it with the new beta release.

    Best regards,

    Barna

  11. Barnabas
    Barnabas avatar
    3 posts
    Member since:
    Jun 2009

    Posted 18 Jun 2009 Link to this post

    Hi Lini,

    I tried and now it works in all three browsers I tried with.

    Best regards,

    Barna
  12. Steve Long
    Steve Long avatar
    1 posts
    Member since:
    Jun 2009

    Posted 30 Sep 2009 Link to this post

    For version 2009.1.527.35, the control never works as far as I can see, under any circumstance. Even using the directory misdirection trick suggested by Telerik, even in debug mode on my local machine with folders represented as shortcuts. I have to use IE 6.0.x, so maybe it doesn't work on anything but the latest IE? And only having access to folders on the web server is pretty silly in the real world.
  13. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 08 Oct 2009 Link to this post

    Hi Steve,

    We are constantly trying to improve the control and fix all scenarios that are problematic for our customers. Please try the latest official build (2009.2.826.35) and see if the FileExplorer behavior improves.

    About the file and folder access - this is not a limitation of the control. We have created the default File Explorer content provider to work with virtual folders, because this is how most people expect the control to behave. If you have a requirement to make the explorer interface with a database or with physical folders on your server, you should simply use a different content provider. We have created sample providers for the most common scenarios (database and physical files). For more information, see the following KB article - http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx

    Kind regards,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017