New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI upload TagHelper FileManagerUploadSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("upload", ParentTag = "kendo-filemanager", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("async", new string[] { "localization", "validation" })]
[SuppressTagRendering]
public class FileManagerUploadSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseFileManagerUploadSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-filemanager name="filemanager">
    <upload>
        <async />
    </upload>
</kendo-filemanager>

Constructors

Initializes a new instance of the FileManagerUploadSettingsTagHelper class.

C#
public FileManagerUploadSettingsTagHelper()

Properties

Fires when the upload was cancelled while in progress. Upload Events.

C#
public string Cancel { get; set; }

Fires when the files are cleared by clicking on the Clear button. Upload Events.

C#
public string Clear { get; set; }

Fires when all active uploads complete—either successfully or with errors. Upload Events.

C#
public string Complete { get; set; }

Enables the selection of folders instead of files.

C#
public bool? Directory { get; set; }

Fires when an upload or remove operation fails. Upload Events.

C#
public string Error { get; set; }

Enables (if set to true) or disables (if set to false) the selection of multiple files. If set to false, the user can select only one file at a time.

C#
public bool? Multiple { get; set; }

Fires when the files are cleared by clicking the Pause button. The button is visible if chunksize is set. Upload Events.

C#
public string Pause { get; set; }

Fires when the data about the progress of the upload is available. Upload Events.

C#
public string Progress { get; set; }

Fires when an uploaded file is about to be removed. If the event is canceled, the remove operation is prevented. Upload Events.

C#
public string Remove { get; set; }

Fires when the files are resumed through clicking the Resume button. The button is visible if chunksize is set and the file upload is paused. Upload Events.

C#
public string Resume { get; set; }

Fires when a file is selected. Upload Events.

C#
public string Select { get; set; }

Enables (if set to true) or disables (if set to false) the display of a file listing for the file upload. The disabling of a file listing might be useful if you want to customize the UI. To build your own UI, use the client-side events.

C#
public bool? ShowFileList { get; set; }

Fires when an upload or remove operation is completed successfully. Upload Events.

C#
public string Success { get; set; }

Fires when one or more files are about to be uploaded. The canceling of the event prevents the upload. Upload Events.

C#
public string Upload { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>