UploadControlSettings.ShowProgressPanel Property
Gets or sets a value that specifies whether the progress panel is displayed within the UploadControl.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the progress panel is visible, otherwise, false. |
Remarks
Use the ShowProgressPanel property to specify whether the progress panel (that contains the progress bar and cancel button) is visible within the UploadControl.
Note
The ASPxUploadProgressHttpHandler‘s functionality is required for the UploadControl’s progress panel to function properly. This handler is automatically added to a web project’s Web.Config file when using a DevExpress Project Template to create a ASP.NET MVC web application. If you don’t use the DevExpress Project Template, you should manually register the ASPxUploadProgressHttpHandler within the Web.Config file.
Note
The ShowProgressPanel property is not in effect if .NET 3.5 framework is used. Under this framework, the default MVC handler prevents the ASPxUploadProgressHttpHandler‘s functionality from being executed correctly. Under .NET framework 4.0, the ShowProgressPanel property works fine.
Note
If you are experiencing the “Access is denied” or “Permission Denied” error during large file uploads to the IIS 5.x or Cassini Web Server, we recommend that you execute the following command at the server, to work around the problem:
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/security/requestFiltering -requestLimits.maxAllowedContentLength:<new-request-length>
Here, <new-request-length> is the new, larger value of the request length.
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()