Hello,
A Question regarding RadFileExplorer and Sharepoint 2010:
I have added a simple RadFileExplorer in an empty Visual Webpart for Sharepoint 2010. On my site there is one normal document library called testlib. I use the custom SPContentProvider class provided in this blog.
I then call this function to add all the libraries to the paths. (It will add 4 libraries total: siteassets, sitepages, shared documents as well as testlib)
It will then give me an exception in SPContentProvider GetPermissions
saying the list does not exist.
If i manually add a "testlib" as a path (removing the "site/") it will load up however all buttons are disabled and I cannot do anything in the Fileexplorer itself (see attached Image)
Any idea what could be going wrong here?
A Question regarding RadFileExplorer and Sharepoint 2010:
I have added a simple RadFileExplorer in an empty Visual Webpart for Sharepoint 2010. On my site there is one normal document library called testlib. I use the custom SPContentProvider class provided in this blog.
protected
void
Page_Load(
object
sender, EventArgs e)
{
FileExplorer.Configuration.ContentProviderTypeName =
typeof
(SPContentProvider).AssemblyQualifiedName;
Page.ClientScript.RegisterStartupScript(Page.GetType(),
"AjaxUpdatePanelFix"
,
"_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;"
,
true
);
FileExplorer.Style.Add(
"overflow"
,
"hidden"
);
SetFileExplorerPaths();
}
I then call this function to add all the libraries to the paths. (It will add 4 libraries total: siteassets, sitepages, shared documents as well as testlib)
private
void
SetFileExplorerPaths()
{
List<String> paths =
new
List<String>();
SPListCollection docLibraries = RetrieveDocumentLibraries(SPContext.Current.Web);
foreach
(SPList list
in
docLibraries)
{
if
(SPContentProvider.IsNotSystemFolder(list.RootFolder)) {paths.Add(list.RootFolder.ServerRelativeUrl);}
}
string
[] convertedPaths = paths.ToArray();
FileExplorer.Configuration.ViewPaths = convertedPaths;
FileExplorer.Configuration.UploadPaths = FileExplorer.Configuration.ViewPaths;
FileExplorer.Configuration.DeletePaths = FileExplorer.Configuration.ViewPaths;
}
It will then give me an exception in SPContentProvider GetPermissions
private
PathPermissions GetPermissions(Guid listId, SPWeb web)
saying the list does not exist.
If i manually add a "testlib" as a path (removing the "site/") it will load up however all buttons are disabled and I cannot do anything in the Fileexplorer itself (see attached Image)
Any idea what could be going wrong here?