RadFileExplorer for SharePoint some buttons does not fire

5 posts, 0 answers
  1. Renata
    Renata avatar
    5 posts
    Member since:
    May 2009

    Posted 14 Dec 2009 Link to this post

    I'm using this control in a webpart and I can upload a file with no problem but if I try to delete or create a new folder the events do not fire.

    I've already configured the control as shown in this blog post and I can not make this work.

    Can anyone please help me with this issue?

    Best Regards,
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 17 Dec 2009 Link to this post

    Hi Renata,

    In the new version - Q3 2009 SP1 we introduced a new method in the Content provider- CheckDeletePermissions. In your case I recommend you to override that method as well in the SPContentProvider class:

     

    public override bool CheckDeletePermissions(string folderPath)
    {
        //permissions checking offloaded to SharePoint security
        SPFolder folder = GetSPFolderFromPath(folderPath);
        bool retVal = true;
        if (folder != null)
        {
            if ((GetPermissions(folder) & PathPermissions.Delete) == 0)
            {
                retVal = false;
            }
        }
        //properly dispose the SPWeb object
        SPWeb web = folder.ParentWeb;
        web.Dispose();
        return retVal;
    }

     

    I hope this helps.


    Regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Renata
    Renata avatar
    5 posts
    Member since:
    May 2009

    Posted 15 Jan 2010 Link to this post

    Hi,

         My problem is still happening. When I try to delete a file or create a new folder the dialog just freezes. 
         Just a remark: my SPContentProvider does not have the CheckWritePermissionsMethod (I added it to my code instead of overwriting it).

        Any more ideias?

    Regards,
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 20 Jan 2010 Link to this post

    Hi Renata,

    The CheckDeletePermissions is added in the 2009.3 1208 and later versions of the controls In the an earlier versions of the controls, this method does not exist. In your case I strongly recommend you to update to the recent version of the control.

    The provided information is not enough for me to determine the exact reason for the problem and I need some additional information about the issue.
    • Could you please check whether the DeletePaths is correctly set in the RadFileExplorer's configuration?
    • Could you please run the project in debug mode and let me know whether the DeleteFile method (in the content provider) is called when a file is deleted? Could you please do the same for the CreateDirectory method which is called when a folder is created.
    • If the DeleteFile (the same as is for CreateDirectory) method is fired, then please make sure that there is not an exception throw in the method. If an exception is thrown this mean that the application (respectively the RadFileExplorer control) does not have enough permissions to complete the operation - Delete or Create a file/folder. In this case the exception message will show you what permissions are required to avoid the exception.
    • A possible reason for the freezing behavior might be that the RadFileExplorer control is updated by using UpdatePanel, RadAjaxManager or RadAjaxPanel control. Please note that the RadFileExplorer control cannot be AJAXified, because it initiates asynchronous callbacks in order to load its items and when two or more nested AJAX requests are initiated then the result will be unpredictable. If this is the case, you need to move the RadFileExplorer control outside of the partially updated zone.

    I am looking forward to hearing from you.

    Kind regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Rahul
    Rahul avatar
    1 posts
    Member since:
    May 2011

    Posted 10 May 2011 Link to this post

    Thanks, moving the RadFileExplorer out of the RadAjaxPanel fixed my problem (the AJAX panel was on the master page).
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017