Tab

TreeViewNodeTemplateContainer.Node Property

Gets a node for which the template's content is being instantiated.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public TreeViewNode Node { get; }
Public ReadOnly Property Node As TreeViewNode

Property Value

Type Description
TreeViewNode

A TreeViewNode object representing the node being rendered.

Available values:

Show 34 items
Name Description
TextTemplate

Gets or sets a template used for displaying the text content of the particular node.

Template

Gets or sets a template used for displaying the content of the particular node.

ToolTip

Gets or sets the current node's tooltip text.

Text

Gets or sets the text displayed within the node content.

Target

Gets or sets the window or frame to which to target the contents of the URL associated with the current node.

NavigateUrl

Gets or sets a URL which defines the navigation location.

Name

Gets or sets the unique identifier name for the current node.

ClientEnabled

Gets or sets a value that indicates whether the node is enabled on the client.

ClientVisible

Gets or sets a value that specifies the node's initial visibility state on the client.

AllowCheck

Gets or sets a value to enable/disable the check box for a particular node.

ToString()

Returns a string that represents the TreeViewNode object.

FindControl(String)

Searches the current naming container for a server control with the specified id parameter.

Assign(CollectionItem)

Copies the settings from the specified node to the current object.

TreeViewNode(String, String, String, String, String)

Initializes a new instance of the TreeViewNode class with the specified settings.

TreeViewNode(String, String, String, String)

Initializes a new instance of the TreeViewNode class with the specified settings.

TreeViewNode(String, String, String)

Initializes a new instance of the TreeViewNode class with the specified settings.

TreeViewNode(String, String)

Initializes a new instance of the TreeViewNode class with the specified settings.

TreeViewNode(String)

Initializes a new instance of the TreeViewNode class with the specified text.

TreeViewNode()

Initializes a new instance of the TreeViewNode class with default settings.

TreeView

Gets the ASPxTreeView control that owns the node.

Parent

Gets the immediate parent node to which the current node belongs.

Nodes

Gets the collection of child nodes within the particular node and provides indexed access to them.

DataItem

Gets the data item that is bound to the node.

DataPath

Gets the path to the data that is bound to the node.

Visible

Gets or sets a value specifying the current node's visibility.

CheckState

Gets a value that specifies the node check state.

Checked

Gets or sets whether the node is checked.

Enabled

Gets or sets a value that indicates whether the node is enabled.

Expanded

Gets or sets whether the node is expanded.

CheckBoxStyle

Gets the check box's style settings.

ImageStyle

Gets the style settings, used to paint an image of the current node.

TextStyle

Gets the node's text content style settings.

NodeStyle

Gets the node's style settings.

Image

Gets the settings of a node's image.

Remarks

Use the Node property to obtain the node for which the template's content is currently being rendered. You can use properties of the returned TreeViewNode object to obtain certain values needed to bind the properties of the controls composing your template.

See Also