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

FileExplorer panel stopped refreshing after upgrade

3 Answers 62 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 19 Nov 2010, 02:49 AM
Hi Guys,

We used trial version of Telerik RAD Controls For Ajax Q2 2010 for one of our project and made it work as we want using CustomFileSystemProvider. Recently we bought a licensed version of RAD Controls which happened to be upgraded version Q3 2010. The problem is that after updating Telerik.Web.UI.dll in our project with new version our File Browser stopped working as before. In particular right panel of file browser stopped updating when one clicks on any folder on the left tree. After some debugging we found that ResolveDirectory function in CustomFileSystemProvider class for Q3 version is called only on initial load but not called on Folder Change. Note that ResolveRootDirectoryAsTree function is called and folder tree is still updated in left panel as it should.

Can you please give us some information what changes has been made in FileExplorer component which can cause this issue and how we can fix it. Our problem is that we need this component ASAP. Using previous version would be good temporary fix for us but it looks like we can not download full version for Q2 controls.

Regards,
Rob

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 22 Nov 2010, 12:43 PM
Hello Rob,

In the new version of the control we introduced a new method in the FileBrowserContentProvider called CheckReadPermissions. This method, needs to be overridden as well in order to ensure the correct behavior of the provider.


Kind regards,
Fiko
the Telerik team
Browse the vast support resources we have to jumpstart 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
Rob
Top achievements
Rank 1
answered on 23 Nov 2010, 12:01 AM
Thank guys,

We were able to make our code working again by adding CheckReadPermissions method to our class but I'd like to mention that the only example I found on your site for FileBrowserContentProvider:

   public override bool CheckReadPermissions(string folderPath)
   {
      return base.CheckReadPermissions(folderPath);
   }
   
didn't work. You definitely need to document it better. My guess is that above code works properly only when folderPath is "standard" one but then who will need to create a custom FileBrowserContentProvider in that case?

Rob
0
Fiko
Telerik team
answered on 23 Nov 2010, 03:44 PM
Hi Rob,

The idea of this code is to show how to override the method. It is not a solution:
public override bool CheckReadPermissions(string folderPath)
{
   return base.CheckReadPermissions(folderPath);
}

Please note that you have to manually implement your code inside the overriden CheckReadPermissions method in order to handle your custom paths. We cannot give a general solution for all possible path formats that can be used with a custom provider and this is why we left the generated code by Visual Studio untouched (above code is generated by VS. You will see the same result if you select to override the CheckReadPermissions on your side).


Regards,
Fiko
the Telerik team
Browse the vast support resources we have to jumpstart 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.
Tags
FileExplorer
Asked by
Rob
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Rob
Top achievements
Rank 1
Share this question
or