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

RadFileExplorer for SharePoint some buttons does not fire

4 Answers 100 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Renata
Top achievements
Rank 1
Renata asked on 15 Dec 2009, 02:04 AM
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,

4 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 17 Dec 2009, 02:20 PM
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.
0
Renata
Top achievements
Rank 1
answered on 15 Jan 2010, 12:24 PM
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,
0
Fiko
Telerik team
answered on 20 Jan 2010, 12:19 PM
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.
0
Rahul
Top achievements
Rank 1
answered on 10 May 2011, 07:09 AM
Thanks, moving the RadFileExplorer out of the RadAjaxPanel fixed my problem (the AJAX panel was on the master page).
Tags
FileExplorer
Asked by
Renata
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Renata
Top achievements
Rank 1
Rahul
Top achievements
Rank 1
Share this question
or