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

FileExplorer Upload and Delete paths not working SQL DBContent Provider

4 Answers 96 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 2
Ricardo asked on 23 Nov 2012, 03:38 PM
I'm having an issue using the SQL DBContent Provider for my files.
The structure is a follows:

root/100/   (View) no (Upload nor delete)
root/100/Supporting documents  (Upload and delete)

// Binding the Radfile explorer
RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(DBContentProvider).AssemblyQualifiedName;
RadFileExplorer1.Configuration.ViewPaths = new string[] { "ROOT/" + id };
RadFileExplorer1.Configuration.UploadPaths = new string[] { "ROOT/" + id + "/Supporting Documents" };
RadFileExplorer1.Configuration.DeletePaths = new string[] { "ROOT/" + id + "/Supporting Documents" };

But it does not work any reason why?
Furthermore, the look is very different on IE7 and Firefox. On FF it shows the menus disable but on IE7 look enable but actually they are not working.

4 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 26 Nov 2012, 11:58 AM
Hi Ricardo,

The paths are configured properly in the provided code snippet, but could you confirm that you are setting them in the Page_Load event (or earlier)? This is the latest moment of the page life cycle in which you can configure RadFileExplorer, and if you are doing it in a later event, that could cause the issue. If this is not the case, could you prepare a sample fully runnable project reproducing the issue so we will be able to examine and debug it locally?

Regarding the disable-buttons issue - it turn out to be a known issue in RadToolbar (which is a child control fro FileExplorer) and we will do our best to fix it for one of our up-coming releases.

All the best,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ricardo
Top achievements
Rank 2
answered on 19 Dec 2012, 08:46 PM
Sorry for the delay.
I just send part of the source code Im working hope you can replicate the issue.

As a reminder the top directory is read only and the subdirectory "Supporting documents" must be upload and delete.

Sincerely,
Ricardo.
0
Ricardo
Top achievements
Rank 2
answered on 17 Jan 2013, 03:15 PM
SOLUTION:
The issue is actually the code in the DBContentProvider.cs

In the function:
public override DirectoryItem ResolveRootDirectoryAsTree(string path)


Change the 8th line of this function, specific in the foreach block as follows:

From this:

dir.Permissions = GetPermissions(path);
To this:
dir.Permissions = GetPermissions(dir.FullPath);

Still there a minor issue regarding the look on IE7 the controls look disable.
In Firefox works just fine.
0
Accepted
Vessy
Telerik team
answered on 22 Jan 2013, 12:03 PM
Hi Ricardo,

Thank you for sharing the solution with the Telerik community.

As mentioned in our previous conversation, the Toolbar issue has already been logged internally, but for your convenience I have made a public item for it into our Feedback portal, so you could track its progress here: http://feedback.telerik.com/Project/108/Feedback/Details/39192-the-disable-buttons-of-radtoolbar-do-not-appear-as-disabled-under-in-ie7-and-ie8

Kind regards,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
FileExplorer
Asked by
Ricardo
Top achievements
Rank 2
Answers by
Vessy
Telerik team
Ricardo
Top achievements
Rank 2
Share this question
or