Back to Devexpress

FileManagerSelectionMode Enum

aspnetcore-devextreme-dot-aspnet-dot-mvc-22cda1a1.md

latest1.1 KB
Original Source

FileManagerSelectionMode Enum

Lists values that specify the selection behavior for the file manager.

Namespace : DevExtreme.AspNet.Mvc

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
[JsonConverter(typeof(StringEnumConverter))]
public enum FileManagerSelectionMode

Members

NameDescription
Multiple

End users can select multiple items.

| | Single |

End users can select a single item only.

|

Remarks

Use the SelectionMode(FileManagerSelectionMode) method to specify the selection behavior of the file manager.

Single Selection:

cshtml
@(Html.DevExtreme().FileManager()
    .SelectionMode(selection => selection.Mode(FileManagerSelectionMode.Single))
)

Multiple Selection:

cshtml
@(Html.DevExtreme().FileManager()
    .SelectionMode(selection => selection.Mode(FileManagerSelectionMode.Multiple))
)

See Also

DevExtreme.AspNet.Mvc Namespace