C1.Web.Mvc Namespace : TreeView Class |
The following tables list the members exposed by TreeView.
Name | Description | |
---|---|---|
TreeView Constructor | Create one TreeView instance. |
Name | Description | |
---|---|---|
AllowDragging | Gets or sets a value that determines whether users can drag and drop nodes within the TreeView control. | |
AutoCollapse | Gets or sets a value that determines if sibling nodes should be collapsed when a node is expanded. | |
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. | |
Components | Gets the child components. (Inherited from C1.Web.Mvc.Component) | |
CssClass | Gets or sets the css class of the control. (Inherited from C1.Web.Mvc.Control) | |
CssStyles | Gets the CSS styles. (Inherited from C1.Web.Mvc.Control) | |
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. | |
ExpandOnClick | Gets or sets a value that determines whether to expand collapsed nodes when the user clicks the node header. | |
Height | Gets or sets the height of the control. (Inherited from C1.Web.Mvc.Control) | |
HtmlAttributes | Gets the HTML attributes. (Inherited from C1.Web.Mvc.Control) | |
Id | Gets or sets the component id. (Inherited from C1.Web.Mvc.Component) | |
ImageMemberPath | Gets or sets the name of the property (or properties) to use as a source of images for the nodes. | |
IsAnimated | Gets or sets a value that indicates whether to use animations when expanding or collapsing nodes. | |
IsContentHtml | Gets or sets a value indicating whether items are bound to plain text or HTML. | |
IsDisabled | Gets or sets a value that determines whether the control is disabled. (Inherited from C1.Web.Mvc.Control) | |
IsReadOnly | Gets or 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. | |
IsTemplate | Gets or sets a boolean value which indicates whether transfer this control to template mode. (Inherited from C1.Web.Mvc.Control) | |
LazyLoadActionUrl | ||
LazyLoadFunction | Gets or sets a client function that loads child nodes on demand. | |
LoadActionUrl | Gets or sets the url to get the items in TreeView. | |
OnClientCheckedItemsChanged | Occurs when the checked items are changed. | |
OnClientDragEnd | 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. | |
OnClientDragOver | Occurs while the user drags a node over other nodes on the TreeView. | |
OnClientDragStart | Occurs when the user starts dragging a node. This event only occurs if the AllowDrag property is set to true. | |
OnClientDrop | Occurs when the user drops a on the TreeView. | |
OnClientFormatItem | Occurs when an element representing a node has been created. | |
OnClientGotFocus | Occurs when the control gets the focus. (Inherited from C1.Web.Mvc.Control) | |
OnClientIsCheckedChanged | Occurs after the check status of a node is changed. | |
OnClientIsCheckedChanging | Occurs before the check status of a node is changed. | |
OnClientIsCollapsedChanged | Occurs after a node is collapsed or expanded. | |
OnClientIsCollapsedChanging | Occurs before a node is collapsed or expanded. | |
OnClientItemClicked | Occurs when the user clicks an item or presses the Enter key and an item is selected. | |
OnClientItemsSourceChanged | Occurs when the value of the ItemsSource property changes. | |
OnClientLoadedItems | Occurs after the tree items have been generated. | |
OnClientLoadingItems | Occurs before the tree items are generated. | |
OnClientLostFocus | Occurs when the control loses the focus. (Inherited from C1.Web.Mvc.Control) | |
OnClientNodeEditEnded | Occurs after a node has exited edit mode. | |
OnClientNodeEditEnding | Occurs before a node exits edit mode. | |
OnClientNodeEditStarted | Occurs after a node has entered edit mode. | |
OnClientNodeEditStarting | Occurs before a node enters edit mode. | |
OnClientSelectedItemChanged | Occurs when the selected item is changes. | |
Selector | Gets or sets a value which specifies the selector. (Inherited from C1.Web.Mvc.Control) | |
ShowCheckboxes | Gets or 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 | Gets or 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. | |
TemplateBindings | Gets the collection of the template bindings. (Inherited from C1.Web.Mvc.Control) | |
UniqueId | Gets a value which represents the unique id for the control. (Inherited from C1.Web.Mvc.Control) | |
Width | Gets or sets the width of the control. (Inherited from C1.Web.Mvc.Control) |
Name | Description | |
---|---|---|
Render | Render the component result to the writer. (Inherited from C1.Web.Mvc.Control) | |
ToHtmlString | Returns an HTML-encoded string. (Inherited from C1.Web.Mvc.Component) |
Name | Description | |
---|---|---|
ToTemplate | Render the html string in template mode. |