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

Kendo UI FileManager TagHelper FileManagerTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-filemanager")]
[RestrictChildren("toolbar", new string[] { "dialogs", "context-menu", "views", "preview-pane", "breadcrumb", "messages", "upload", "filemanager-datasource" })]
public class FileManagerTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<FileManagerDataSourceTagHelper>

Inheritance: objectTagHelperTagHelperBaseFileManagerTagHelper

Implements: IDataBoundWidget<FileManagerDataSourceTagHelper>ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.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="filemanager11" upload-url="@Url.Action("Upload", "FileManagerData")">
    <filemanager-datasource>
        <transport>
            <read url="@Url.Action("Read", "FileManagerData")" />
            <create url="@Url.Action("Destroy", "FileManagerData")" />
            <destroy url="@Url.Action("Create", "FileManagerData")" />
            <update url="@Url.Action("Update", "FileManagerData")" />
        </transport>
    </filemanager-datasource>
</kendo-filemanager>

Constructors

Initializes a new instance of the FileManagerTagHelper class.

C#
public FileManagerTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

The Id of the data source.

C#
[HtmlAttributeName("datasource-id")]
public string DataSourceId { get; set; }

Enables or disables dragging and dropping files from the FileManager view(GridView, ListView) to the TreeView and vice versa.

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

Configures the height of the FileManager.

C#
public double? Height { get; set; }

Configures the initial view of the FileManager.

C#
public string InitialView { get; set; }

The name of the JavaScript function that will handle the command event. Fired when server command is executed (copy, move, delete or rename).The event is useful to get feedback when server commands has failed or succeeded and take additional actions based on the status.

C#
public string OnCommand { get; set; }

The name of the JavaScript function that will handle the dataBinding event. Fired before the widget binds to its data source.

C#
public string OnDataBinding { get; set; }

The name of the JavaScript function that will handle the dataBound event. Fired when the widget is bound to data from its data source.

C#
public string OnDataBound { get; set; }

The name of the JavaScript function that will handle the drop event. Fired when a file is dragged and dropped over a folder.

C#
public string OnDrop { get; set; }

The name of the JavaScript function that will handle the error event. Fired when a error in the DataSource happen.

C#
public string OnError { get; set; }

The name of the JavaScript function that will handle the execute event. Fired when a command is executed.

C#
public string OnExecute { get; set; }

The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the FileManager is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnKendoKeydown { get; set; }

The name of the JavaScript function that will handle the navigate event. Fired when navigation occurs.

C#
public string OnNavigate { get; set; }

The name of the JavaScript function that will handle the open event. Fired when a file is opened (with double click).

C#
public string OnOpen { get; set; }

The name of the JavaScript function that will handle the select event. Fired when selection changes.

C#
public string OnSelect { get; set; }

Configures the resizable features of the FileManager.

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

Sets the upload url for the Upload widget.

C#
public string UploadUrl { get; set; }

Configures the width of the FileManager.

C#
public double? Width { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

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

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)