ASP.NET MVC Controls
TreeView Class Members
Properties  Methods 

The following tables list the members exposed by TreeView.

Public Constructors
 NameDescription
Public ConstructorTreeView ConstructorCreate one TreeView instance.  
Top
Public Properties
 NameDescription
Public PropertyAllowDraggingGets or sets a value that determines whether users can drag and drop nodes within the TreeView control.  
Public PropertyAutoCollapseGets or sets a value that determines if sibling nodes should be collapsed when a node is expanded.  
Public PropertyChildItemsPathGets 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.  
Public PropertyComponentsGets the child components. (Inherited from C1.Web.Mvc.Component)
Public PropertyCssClassGets or sets the css class of the control. (Inherited from C1.Web.Mvc.Control)
Public PropertyCssStylesGets the CSS styles. (Inherited from C1.Web.Mvc.Control)
Public PropertyDisplayMemberPathGets 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.  
Public PropertyExpandOnClickGets or sets a value that determines whether to expand collapsed nodes when the user clicks the node header.  
Public PropertyHeightGets or sets the height of the control. (Inherited from C1.Web.Mvc.Control)
Public PropertyHtmlAttributesGets the HTML attributes. (Inherited from C1.Web.Mvc.Control)
Public PropertyIdGets or sets the component id. (Inherited from C1.Web.Mvc.Component)
Public PropertyImageMemberPathGets or sets the name of the property (or properties) to use as a source of images for the nodes.  
Public PropertyIsAnimatedGets or sets a value that indicates whether to use animations when expanding or collapsing nodes.  
Public PropertyIsContentHtmlGets or sets a value indicating whether items are bound to plain text or HTML.  
Public PropertyIsDisabledGets or sets a value that determines whether the control is disabled. (Inherited from C1.Web.Mvc.Control)
Public PropertyIsReadOnlyGets 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.  
Public PropertyIsTemplateGets or sets a boolean value which indicates whether transfer this control to template mode. (Inherited from C1.Web.Mvc.Control)
Public PropertyLazyLoadActionUrl  
Public PropertyLazyLoadFunctionGets or sets a client function that loads child nodes on demand.  
Public PropertyLoadActionUrlGets or sets the url to get the items in TreeView.  
Public PropertyOnClientCheckedItemsChangedOccurs when the checked items are changed.  
Public PropertyOnClientDragEndOccurs 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.  
Public PropertyOnClientDragOverOccurs while the user drags a node over other nodes on the TreeView.  
Public PropertyOnClientDragStartOccurs when the user starts dragging a node. This event only occurs if the AllowDrag property is set to true.  
Public PropertyOnClientDropOccurs when the user drops a on the TreeView.  
Public PropertyOnClientFormatItemOccurs when an element representing a node has been created.  
Public PropertyOnClientGotFocusOccurs when the control gets the focus. (Inherited from C1.Web.Mvc.Control)
Public PropertyOnClientIsCheckedChangedOccurs after the check status of a node is changed.  
Public PropertyOnClientIsCheckedChangingOccurs before the check status of a node is changed.  
Public PropertyOnClientIsCollapsedChangedOccurs after a node is collapsed or expanded.  
Public PropertyOnClientIsCollapsedChangingOccurs before a node is collapsed or expanded.  
Public PropertyOnClientItemClickedOccurs when the user clicks an item or presses the Enter key and an item is selected.  
Public PropertyOnClientItemsSourceChangedOccurs when the value of the ItemsSource property changes.  
Public PropertyOnClientLoadedItemsOccurs after the tree items have been generated.  
Public PropertyOnClientLoadingItemsOccurs before the tree items are generated.  
Public PropertyOnClientLostFocusOccurs when the control loses the focus. (Inherited from C1.Web.Mvc.Control)
Public PropertyOnClientNodeEditEndedOccurs after a node has exited edit mode.  
Public PropertyOnClientNodeEditEndingOccurs before a node exits edit mode.  
Public PropertyOnClientNodeEditStartedOccurs after a node has entered edit mode.  
Public PropertyOnClientNodeEditStartingOccurs before a node enters edit mode.  
Public PropertyOnClientSelectedItemChangedOccurs when the selected item is changes.  
Public PropertySelectorGets or sets a value which specifies the selector. (Inherited from C1.Web.Mvc.Control)
Public PropertyShowCheckboxesGets 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).  
Public PropertySourceGets 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.  
Public PropertyTemplateBindingsGets the collection of the template bindings. (Inherited from C1.Web.Mvc.Control)
Public PropertyUniqueIdGets a value which represents the unique id for the control. (Inherited from C1.Web.Mvc.Control)
Public PropertyWidthGets or sets the width of the control. (Inherited from C1.Web.Mvc.Control)
Top
Public Methods
 NameDescription
Public MethodRenderRender the component result to the writer. (Inherited from C1.Web.Mvc.Control)
Public MethodToHtmlStringReturns an HTML-encoded string. (Inherited from C1.Web.Mvc.Component)
Top
Extension Methods
 NameDescription
Public Extension MethodToTemplateRender the html string in template mode.
Top
See Also

Reference

TreeView Class
C1.Web.Mvc Namespace

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback