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

[Solved] FileBrowserContentProvider

1 Answer 33 Views
RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John Kenneth
Top achievements
Rank 1
John Kenneth asked on 01 Aug 2008, 10:40 AM

Hi,

We tried to inherit the FileBrowserContentProvider on a sharepoint webpart but it seems it doesnt work. We tried to call the ResolveRootDirectoryAsTree method. Here is a our sample code:

public

CustomContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag)
:
 
base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)

{
    

foreach (string strPath in viewPaths)
    {
        ResolveRootDirectoryAsTree(strPath);
    }
}

We will appreciate for some ideas you can provide to us. Thanks.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Aug 2008, 01:15 PM
Hi John Kenneth,

Could you please clarify what exactly do you want to achieve? Why are you inheriting the FileBrowserContentProvider class - it is an abstract class and you will have to manually implement all its methods. If you want to use the MOSS libraries, just inherit the SPContentProvider one and override the desired functions. If you want to use the File System you can override the FileSystemContentProvider class.

I hope this helps.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
RadControls
Asked by
John Kenneth
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or