Back to Devexpress

ASPxFileManager.SettingsDataSource Property

aspnet-devexpress-dot-web-dot-aspxfilemanager-6439647b.md

latest2.4 KB
Original Source

ASPxFileManager.SettingsDataSource Property

Provides access to a file manager’s field name settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public FileManagerSettingsDataSource SettingsDataSource { get; }
vb
Public ReadOnly Property SettingsDataSource As FileManagerSettingsDataSource

Property Value

TypeDescription
FileManagerSettingsDataSource

A FileManagerSettingsDataSource object that contains data source settings.

|

Remarks

Use the SettingsDataSource property to specify the names of the data source fields that provide item basic information.

Note

The data types of the KeyFieldName and ParentKeyFieldName fields must be the same.

Example

Note

For a full example, see File Manager - Database Binding or File Manager - Details View demo.

aspx
<dx:ASPxFileManager ID="fileManager" runat="server" DataSourceID="ArtsDataSource">
     <SettingsDataSource KeyFieldName="Id" ParentKeyFieldName="ParentID" NameFieldName="Name" IsFolderFieldName="IsFolder" FileBinaryContentFieldName="Data" LastWriteTimeFieldName="LastWriteTime" />
     ...
</dx:ASPxFileManager>
<ef:EntityDataSource ID="ArtsDataSource" runat="server" ContextTypeName="DevExpress.Web.Demos.DataContext" EntitySetName="Arts" StoreOriginalValuesInViewState="false" />

See Also

Physical File System Provider

File Manager

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace