All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SharePoint File System Provider

The SharePoint file system provider (SharePointFileSystemProvider) allows you to connect the ASPxFileManager to a SharePoint document library.

ASPxFileManager_SharePointFileSystemProvider

Connect File Manager to SharePoint

Use the AccountManager.RegisterOneDrive method and the OneDriveAccount object to register the SharePoint account in the global.asax file.

NOTE

The SharePoint file system provider uses OneDrive APIs to interact with SharePoint.

Global.asax file:

AccountManager.RegisterOneDrive("FileManagerOneDriveAccount", "f49c387c-1c25-4f27-855b-dfd3fd3", "..+SKN3n5H0/KZVb6c=...");

To specify which file system provider type is used to manage files, set the ASPxFileManager.ProviderType property to FileManagerProviderType.SharePoint.

<dx:ASPxFileManager ID="FileManager" ProviderType="SharePoint">
    ...
</dx:ASPxFileManager>

Use the ASPxFileManager.SettingsSharePoint property to specify SharePoint account settings.

<dx:ASPxFileManager ID="FileManager" >
    //...
    <SettingsSharePoint 
        AccountName="FileManagerSharePointAccount" 
        TokenEndpoint="https://login.microsoftonline.com/46ec2686-1d80-6e0r-81de-57aec8e4672f/oauth2/token" 
        RedirectUri="http://localhost"
        SiteName="DemoSite" 
        SiteHostName="myteam.sharepoint.com" />
</dx:ASPxFileManager>

Use the ASPxFileManager.CloudProviderRequest event to handle every request to SharePoint.