Back to Devexpress

FileUploaderBuilder.AllowCanceling(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-fileuploaderbuilder-dot-allowcanceling-x28-system-dot-boolean-x29.md

latest1.4 KB
Original Source

FileUploaderBuilder.AllowCanceling(Boolean) Method

Specifies if an end user can remove a file from the selection and interrupt uploading. Mirrors the client-side allowCanceling option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public FileUploaderBuilder AllowCanceling(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The option value.

|

Returns

TypeDescription
FileUploaderBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().FileUploader()
    .AllowCanceling(true)
)

See Also

FileUploaderBuilder Class

FileUploaderBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace