All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
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 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=...");

Set the ASPxFileManager.ProviderType property to FileManagerProviderType.SharePoint to specify SharePoint as the file system provider type used to manage files.

<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.