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

RadFileExplorer in Visual Webpart

7 Answers 72 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 16 May 2011, 11:45 AM
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.

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?




7 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 May 2011, 12:03 PM
Hello Steve,

The blog post is written for RadEditor for MOSS 2007. We will update it for SharePoint 2010 and I will notify you once it is ready.

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Rumen
Telerik team
answered on 20 May 2011, 03:37 PM
Hi Steve,

Please, find attached a RadFileExplorer Visual Webpart for SharePoint 2010 that we prepared for you. We will publish soon another blog post for this RadFileExplorer in Visual Webpart of SharePoint 2010 scenario.

All the best,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Harish
Top achievements
Rank 1
answered on 12 Aug 2015, 07:25 AM

Hi Rumen,

I am also trying the same example.

I am not able to populate the document library in RadFileExplorer.

Do I need to do any setting for the same ?

Can I get online support ? How ?

Always I am getting folder null also along with ParentList id '000000...'.

Can you please help me out here how to resolve this issue ?

private SPFolder GetSPFolderFromPath(string path)

{

}

Thanks,

Harish Patil

 
 
0
Vessy
Telerik team
answered on 12 Aug 2015, 11:20 AM
Hi Harish,

You can find detailed explanation regarding all configurations you need to make in order to populate FileExplorer with SP 2010 library in the following blog post:
Using the RadFileExplorer for ASP.NET AJAX in SharePoint 2010 web parts

You will also find a sample project at the bottom of the blog post containing already configured FileExplorer along with implemented by us SP 2010 content provider.

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Harish
Top achievements
Rank 1
answered on 13 Aug 2015, 08:26 AM

Hi Vessy,

I have followed all the steps as mentioned in post.

I encounter the issue.

Following methods are taking path "/FileExplorer_UploadAndPreviewFiles/WOW" by default. But if we are passing the

"/WOW" then it is working fine(Views only). But thing is that we can not trim upto "/WOW" in all the methods. Because there are multiple folders are also there.

So How I can pass "/WOW" to all the methods. Means only library path.

Methods:

GetFile, GetPath, ResolveDirectory, CheckWritePermissions ..... etc

 ‚Äč

Webpart page URL: http://XXX/FileExplorer_UploadAndPreviewFiles/default.aspx

Doc library URL: http://XXX/FileExplorer_UploadAndPreviewFiles/WOW/Forms/AllItems.aspx

 

Where I am doing the mistake ? While creating site or library or may be any other thing ?

Please help me out here how to resolve this issue ?

 

Thanks,

Harish Patil

 
 
0
Harish
Top achievements
Rank 1
answered on 17 Aug 2015, 05:02 AM

Any Update ?

Thanks,

Harish Patil

 
 
0
Vessy
Telerik team
answered on 18 Aug 2015, 08:00 AM
Hi Harish,

I am afraid that we are not able to be of much help without being able to examine the problematic configuration at our end. Can you, please, isolate the problem into a sample runnable webpart and send it for a further investigation?

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
FileExplorer
Asked by
Steve
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Harish
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or