FileExplorer Upload and Delete paths not working SQL DBContent Provider

5 posts, 1 answers
  1. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Aug 2012

    Posted 23 Nov 2012 Link to this post

    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.

  2. Vessy
    Admin
    Vessy avatar
    1385 posts

    Posted 26 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Aug 2012

    Posted 19 Dec 2012 Link to this post

    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.
  5. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Aug 2012

    Posted 17 Jan 2013 Link to this post

    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.
  6. Answer
    Vessy
    Admin
    Vessy avatar
    1385 posts

    Posted 22 Jan 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017