FileManagerTagHelper
Kendo UI FileManager TagHelper FileManagerTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@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>
Child Tags
Constructors
Initializes a new instance of the FileManagerTagHelper class.
public FileManagerTagHelper(IKendoHtmlGenerator generator)
Properties
The Id of the data source.
[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.
public bool? Draggable { get; set; }
Configures the initial view of the FileManager.
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.
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.
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.
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.
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.
public string OnError { get; set; }
The name of the JavaScript function that will handle the execute event. Fired when a command is executed.
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.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the navigate event. Fired when navigation occurs.
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).
public string OnOpen { get; set; }
The name of the JavaScript function that will handle the select event. Fired when selection changes.
public string OnSelect { get; set; }
Configures the resizable features of the FileManager.
public bool? Resizable { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: