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

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

1 Answer 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 09 Dec 2011, 12:08 AM
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

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 13 Dec 2011, 04:47 PM
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
Tags
Editor
Asked by
Syed
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or