ResolveRootDirectoryAsTree is calling multiple times and files are not populating in ImageDailog list

2 posts, 0 answers
  1. Syed
    Syed avatar
    1 posts
    Member since:
    Jan 2011

    Posted 08 Dec 2011 Link to this post

    Using Telerik version 2011.3.1115.35, facing a problem when using DBContentProvider.cs, thats is
    RadEditor1.ImageManager.ContentProviderTypeName = typeof(DBContentProvider).AssemblyQualifiedName;

    On debug found that ResolveRootDirectoryAsTree is calling multiple times and files are not populating in ImageDailog list for ViewPaths = "Root", however returnValue contains the list of retreived files already uploaded.
    Note:in old version same code working for IE8 in compatibility mode.

    public override DirectoryItem ResolveRootDirectoryAsTree(string path)
    {
          DirectoryItem returnValue =
                        new DirectoryItem(GetName(path), GetDirectoryPath(path), string.Empty, string.Empty, fullPermissions, GetChildFiles(path),
                        GetChildDirectories(path));
                  
          return returnValue;
    }

    Why ImageDialog not showing the files and upload button also remains disabled
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 13 Dec 2011 Link to this post

    Hi Syed,

    Could you please verify that you are using the DBContentProvider from this code library?

    The provided code snippet differs a bit from the code of the of the content provider from the code library's one. Could you please check if fullPermissions contains PathPermissions.Read?

    Regards,
    Dobromir
    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