FileExplorer panel stopped refreshing after upgrade

4 posts, 0 answers
  1. Rob
    Rob avatar
    2 posts
    Member since:
    Nov 2010

    Posted 18 Nov 2010 Link to this post

    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
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 22 Nov 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rob
    Rob avatar
    2 posts
    Member since:
    Nov 2010

    Posted 22 Nov 2010 Link to this post

    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
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 23 Nov 2010 Link to this post

    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.
Back to Top