RadFileExplorer in Visual Webpart

8 posts, 0 answers
  1. Steve
    Steve avatar
    20 posts
    Member since:
    Jan 2011

    Posted 16 May 2011 Link to this post

    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?




  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 19 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 20 May 2011 Link to this post

    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.

  5. Harish
    Harish avatar
    11 posts
    Member since:
    Jun 2015

    Posted 12 Aug 2015 in reply to Rumen Link to this post

    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

     
  6. Vessy
    Admin
    Vessy avatar
    1384 posts

    Posted 12 Aug 2015 Link to this post

    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
  7. Harish
    Harish avatar
    11 posts
    Member since:
    Jun 2015

    Posted 13 Aug 2015 in reply to Vessy Link to this post

    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

     
  8. Harish
    Harish avatar
    11 posts
    Member since:
    Jun 2015

    Posted 17 Aug 2015 in reply to Harish Link to this post

    Any Update ?

    Thanks,

    Harish Patil

     
  9. Vessy
    Admin
    Vessy avatar
    1384 posts

    Posted 18 Aug 2015 Link to this post

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