Tab

FileManagerFileListDetailsViewSettings.AllowColumnDragDrop Property

Gets or sets whether end-users can reorder columns by dragging their headers.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(true)]
public bool AllowColumnDragDrop { get; set; }
<DefaultValue(True)>
Public Property AllowColumnDragDrop As Boolean

Property Value

Type Default Description
Boolean

true

true to allow end-users to reorder columns; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowColumnDragDrop
ASP.NET Controls and MVC Extensions HtmlEditorDocumentSelectorFileListSettings
.DetailsViewSettings.AllowColumnDragDrop
HtmlEditorFileManagerFileListSettings
.DetailsViewSettings.AllowColumnDragDrop
FileManagerSettingsFileList
.DetailsViewSettings.AllowColumnDragDrop
ASP.NET MVC Extensions MVCxFileManagerSettingsFileList
.DetailsViewSettings.AllowColumnDragDrop
MVCxFileManagerSettingsFileList
.DetailsViewSettings.AllowColumnDragDrop

Remarks

The file manager displays the file list in grid format when the FileManagerSettingsFileList.View property is set to Details. Use the AllowColumnDragDrop property to specify whether end users can drag columns.

Individual columns provide the FileManagerDetailsColumn.AllowDragDrop option that enables you to override the default behavior.

Example

Web Forms (declaratively):

<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsFileList View="Details">
        <DetailsViewSettings AllowColumnResize="true" AllowColumnDragDrop="true" 
        AllowColumnSort="true" ShowHeaderFilterButton="false" />
    </SettingsFileList>
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsFileList.View = FileListView.Details;
fm.SettingsFileList.DetailsViewSettings.AllowColumnResize = true;
fm.SettingsFileList.DetailsViewSettings.AllowColumnDragDrop = true;
fm.SettingsFileList.DetailsViewSettings.AllowColumnSort = true;
fm.SettingsFileList.DetailsViewSettings.ShowHeaderFilterButton = false;

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsFileList.View = FileListView.Details;
    settings.SettingsFileList.DetailsViewSettings.AllowColumnResize = true;
    settings.SettingsFileList.DetailsViewSettings.AllowColumnDragDrop = true;
    settings.SettingsFileList.DetailsViewSettings.AllowColumnSort = true;
    settings.SettingsFileList.DetailsViewSettings.ShowHeaderFilterButton = false
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also