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

RadFileExplorer directory listing

11 Answers 690 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 Feb 2009, 02:48 PM
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

11 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 27 Feb 2009, 01:28 PM
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.
0
Aron
Top achievements
Rank 2
answered on 21 Mar 2009, 05:51 PM
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;
0
Lini
Telerik team
answered on 26 Mar 2009, 12:49 PM
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.
0
Aron
Top achievements
Rank 2
answered on 26 Mar 2009, 01:08 PM
Right, works in ie 7 - no problems. In firefox, no grid.
0
Lini
Telerik team
answered on 30 Mar 2009, 08:27 AM
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.
0
Barnabas
Top achievements
Rank 1
answered on 17 Jun 2009, 12:52 PM
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

0
Lini
Telerik team
answered on 18 Jun 2009, 10:54 AM
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.
0
Barnabas
Top achievements
Rank 1
answered on 18 Jun 2009, 11:45 AM
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

0
Barnabas
Top achievements
Rank 1
answered on 18 Jun 2009, 12:13 PM
Hi Lini,

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

Best regards,

Barna
0
Steve Long
Top achievements
Rank 1
answered on 30 Sep 2009, 09:04 PM
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.
0
Lini
Telerik team
answered on 08 Oct 2009, 10:35 AM
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.
Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
Lini
Telerik team
Aron
Top achievements
Rank 2
Barnabas
Top achievements
Rank 1
Steve Long
Top achievements
Rank 1
Share this question
or