Skip to main content

UploadControlSettings.ShowUploadButton Property

Gets or sets a value the specifies whether the Upload button is displayed within the Add and Upload button area.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public bool ShowUploadButton { get; set; }

Property Value

Type Description
Boolean

true, if the button is visible, otherwise, false.

Remarks

Use the ShowUploadButton property to specify whether the Upload button is visible within the UploadControl.

The appearance of this button can be customized by using the UploadControlStyles.Button property (available via the UploadControlSettings.Styles). The Upload button’s image and text are defined via the UploadControlSettings.UploadButton property.

Example

The example below demonstrates how to enable drag-and-drop support in the Upload Control extension and allow users to upload multiple files simultaneously:

@Html.DevExpress().UploadControl(settings => {
    settings.Name = "UploadControl";
    settings.ShowUploadButton = true;
    settings.ShowProgressPanel = true;
    settings.UploadMode = DevExpress.Web.UploadControlUploadMode.Advanced;
    settings.AdvancedModeSettings.EnableMultiSelect = true;
    settings.AdvancedModeSettings.EnableFileList = true;
    settings.AdvancedModeSettings.EnableDragAndDrop = true;
}).GetHtml()

View Example: Upload Control for ASP.NET MVC - How to upload multiple files simultaneously

See Also