[]
        
(Showing Draft Content)

C1.Web.Mvc.TagHelpers.TreeViewTagHelper

TreeViewTagHelper Class

ITagHelper implementation for TreeView.

Namespace: C1.Web.Mvc.TagHelpers
Assembly: C1.AspNetCore.Mvc.dll
Syntax
[HtmlTargetElement("c1-tree-view")]
public class TreeViewTagHelper : ControlTagHelper<TreeView>, ITagHelper, ITagHelperComponent, ITemplateTagHelper

Constructors

Name Description
TreeViewTagHelper()

Properties

Name Description
AllowDragging

Configurates AllowDragging. Sets a value that determines whether users can drag and drop nodes within the TreeView control.

AutoCollapse

Configurates AutoCollapse. Sets a value that determines if sibling nodes should be collapsed when a node is expanded.

CheckOnClick

Configurates CheckOnClick. Sets a value that determines whether to toggle checkboxes when the user clicks the node header.

CheckedItemsChanged

Configurates the OnClientCheckedItemsChanged client event. Occurs when the checked items are changed.

CheckedMemberPath

Gets or sets the name of the property (or properties) to use as a source of images for the nodes.

ChildItemsPath

Gets or sets the name of the property (or properties) that contains the child items for each node. When it is not set, ['items'] will be used.

CollapseOnClick

Configurates CollapseOnClick. Sets a value that determines whether to collapse expanded nodes when the user clicks the node header.

CollapseWhenDisabled

Configurates CollapseWhenDisabled. Sets a value that determines whether nodes should be collapsed when they are disabled.

DisplayMemberPath

Gets or sets the name of the property (or properties) to use as the visual representation of the nodes. When it is not set, ['header'] will be used.

DragEnd

Configurates the OnClientDragEnd client event. Occurs when the user finishes a drag/drop operation, either by dropping a node into a new location or by canceling the operation with the mouse or keyboard.

DragOver

Configurates the OnClientDragOver client event. Occurs while the user drags a node over other nodes on the TreeView.

DragStart

Configurates the OnClientDragStart client event. Occurs when the user starts dragging a node. This event only occurs if the AllowDrag property is set to true.

Drop

Configurates the OnClientDrop client event. Occurs when the user drops a on the TreeView.

ExpandOnClick

Configurates ExpandOnClick. Sets a value that determines whether to expand collapsed nodes when the user clicks the node header.

ExpandOnLoad

Configurates ExpandOnLoad. Sets a value that determines whether to toggle checkboxes when the user clicks the node header.

FormatItem

Configurates the OnClientFormatItem client event. Occurs when an element representing a node has been created.

ImageMemberPath

Gets or sets the name of the property (or properties) to use as a source of images for the nodes.

IsAnimated

Configurates IsAnimated. Sets a value that indicates whether to use animations when expanding or collapsing nodes.

IsCheckedChanged

Configurates the OnClientIsCheckedChanged client event. Occurs after the check status of a node is changed.

IsCheckedChanging

Configurates the OnClientIsCheckedChanging client event. Occurs before the check status of a node is changed.

IsCollapsedChanged

Configurates the OnClientIsCollapsedChanged client event. Occurs after a node is collapsed or expanded.

IsCollapsedChanging

Configurates the OnClientIsCollapsedChanging client event. Occurs before a node is collapsed or expanded.

IsContentHtml

Configurates IsContentHtml. Sets a value indicating whether items are bound to plain text or HTML.

IsReadOnly

Configurates IsReadOnly. Sets a value that determines whether users can edit the text in the nodes. When it is set to false, users may edit the content of the tree nodes by typing directly into the nodes. The F2 key can also be used to enter edit mode with the whole node content selected.

ItemClicked

Configurates the OnClientItemClicked client event. Occurs when the user clicks an item or presses the Enter key and an item is selected.

ItemsSourceChanged

Configurates the OnClientItemsSourceChanged client event. Occurs when the value of the ItemsSource property changes.

LazyLoadActionUrl

Configurates LazyLoadActionUrl. Sets the url to get the lazy nodes in TreeView.

LazyLoadFunction

Configurates LazyLoadFunction. Sets a client function that loads child nodes on demand.

LoadActionUrl

Configurates LoadActionUrl. Sets the url to get the items in TreeView.

LoadedItems

Configurates the OnClientLoadedItems client event. Occurs after the tree items have been generated.

LoadingItems

Configurates the OnClientLoadingItems client event. Occurs before the tree items are generated.

NodeEditEnded

Configurates the OnClientNodeEditEnded client event. Occurs after a node has exited edit mode.

NodeEditEnding

Configurates the OnClientNodeEditEnding client event. Occurs before a node exits edit mode.

NodeEditStarted

Configurates the OnClientNodeEditStarted client event. Occurs after a node has entered edit mode.

NodeEditStarting

Configurates the OnClientNodeEditStarting client event. Occurs before a node enters edit mode.

ReponseTextParsing

Configurates the OnClientReponseTextParsing client event. Occurs when parsing the response text.

RequestDataStringifying

Configurates the OnClientRequestDataStringifying client event. Occurs when serializing the request data.

SelectedItemChanged

Configurates the OnClientSelectedItemChanged client event. Occurs when the selected item is changes.

ShowCheckboxes

Configurates ShowCheckboxes. Sets a value that determines whether the TreeView control should add checkboxes to nodes and manage their state. This property can be used only on trees without lazy-loaded nodes(LazyLoadFunction is not set and IsLazyLoading is false).

Source

Configurates Source. Sets the array that contains the items in TreeView. Arrays usually have a hierarchical structure with items that contain child items. There is no fixed limit to the depth of the items.