KaxTreeNode Class |
Namespace: Kettic.AspNet.Controls
The KaxTreeNode type exposes the following members.
Name | Description | |
---|---|---|
KaxTreeNode | Initializes a new instance of the KaxTreeNode class. | |
KaxTreeNode(String) |
Initializes a new instance of the KaxTreeNode class with the
specified text data.
| |
KaxTreeNode(String, String) |
Initializes a new instance of the KaxTreeNode class with the
specified text and value.
| |
KaxTreeNode(String, String, String) |
Initializes a new instance of the KaxTreeNode class with the
specified text, value and URL.
|
Name | Description | |
---|---|---|
CheckChildNodes |
Checks all child nodes of the current node.
| |
Clone |
Creates a copy of the current KaxTreeNode object. | |
CollapseChildNodes |
Collapses recursively all child nodes of the node.
| |
CollapseParentNodes |
Expands all parent nodes of the node.
| |
ExpandChildNodes |
Expands all child nodes of the node.
| |
ExpandParentNodes |
Expands all parent nodes of the node.
| |
GetAllNodes |
Gets a linear list of all nodes in the KaxTreeNode.
| |
GetFullPath |
Returns the full path (location) of the node delimited by the specified character.
| |
InsertAfter |
Inserts a node after the current node.
| |
InsertBefore |
Inserts a node before the current node.
| |
IsAncestorOf |
Checks if the current node is ancestor of another node.
| |
IsDescendantOf |
Checks if the current node is descendant of another node node.
| |
Remove |
Removes the node from the Nodes collection of its parent
| |
Toggle |
Toggles Expand/Collapse state of the node.
| |
UncheckChildNodes |
Unchecks all child nodes of the current node.
|
Name | Description | |
---|---|---|
AllowDrag |
Gets or sets a value indicating whether the node can be dragged and dropped.
| |
AllowDrop |
Gets or sets a value indicating whether the use can drag and drop nodes over this
node.
| |
AllowEdit |
Gets or sets a value indicating whether the use can edit the text of the node.
| |
Category |
Gets or sets the category of the node.
| |
Checkable |
Gets or sets a value indicating whether the node is checkable. A checkbox control is rendered
for checkable nodes.
| |
Checked |
Gets or sets a value indicating whether the node is checked or not.
| |
CheckState |
Gets the checked state of the tree node
| |
ContentCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied to the content
wrapper of the node.
| |
ContextMenuID |
Gets or sets a value indicating the ID of the KaxTreeViewContextMenu displayed for the current node.
| |
CssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied by default to the node.
(Overrides WebControlCssClass.) | |
DataItem | Gets the data item that is bound to the node (Overrides ControlItemDataItem.) | |
DisabledCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied to the node when it is disabled.
| |
DisabledImageUrl |
Gets or sets a value specifying the URL of the image rendered when the node is disabled.
| |
EnableContextMenu |
Gets or sets a value indicating whether a context menu should be displayed for the current node.
| |
Enabled |
Gets or sets a value indicating whether the node is enabled.
(Overrides ControlItem.Enabled.) | |
Expanded | Gets or sets a value indicating whether the node is expanded. | |
ExpandedImageUrl |
Gets or sets a value specifying the URL of the image rendered when the node is expanded.
| |
ExpandMode |
Gets or sets the expand behavior of the tree node.
When set to ExpandMode.ServerSide the KaxTreeView will fire a server event (NodeExpand) so you can populate the node on demand.
| |
FullPath |
Gets the full path (location) of the node.
| |
HoveredCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied to the node when the mouse hovers it.
| |
HoveredImageUrl |
Gets or sets a value specifying the URL of the image rendered when the node is hovered with the mouse.
(Overrides NavigationItemHoveredImageUrl.) | |
ImageUrl |
Gets or sets the URL to an image which is displayed next to the text of a node.
(Overrides NavigationItemImageUrl.) | |
Level |
Gets the level of the node.
| |
LongDesc |
A Section 508 element
| |
NavigateUrl |
Gets or sets the URL to navigate to when the current node is clicked.
(Overrides NavigationItemNavigateUrl.) | |
Next |
Gets the next sibling of the node.
| |
Nodes |
Gets a KaxTreeNodeCollection object that contains the child nodes of the current KaxTreeNode.
| |
NodeTemplate | Gets or sets the template for displaying the node. | |
Owner | ||
ParentNode |
Gets the parent node of the current node.
| |
PostBack |
Gets or sets a value indicating whether clicking on the node will
postback.
| |
Prev |
Gets the previous sibling of the node.
Gets the previous node sibling in the tree structure or returns null if this is the first node in the respective node group.
| |
Selected |
Gets or sets a value indicating whether the node is selected.
| |
SelectedCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied when node is
selected.
| |
SelectedImageUrl |
Gets or sets a value specifying the URL of the image rendered when the node is selected.
| |
Target |
Gets or sets the target window or frame in which to display the Web page content associated with the current node.
(Overrides NavigationItemTarget.) | |
Text |
Gets or sets the text displayed for the current node.
(Overrides ControlItemText.) | |
ToolTip |
Gets or sets the tooltip shown for the node when the user hovers it with the mouse
(Overrides WebControlToolTip.) | |
TreeView |
Gets the KaxTreeView which the node is part of.
| |
Value |
Gets or sets custom (user-defined) data associated with the current node.
(Overrides ControlItemValue.) |
The KaxTreeView control is made up of nodes. Nodes which are immediate children of the treeview are root nodes. Nodes which are children of root nodes are child nodes.
A node usually stores data in two properties, the Text property and the Value property. The value of the Text property is displayed in the KaxTreeView control, and the Value property is used to store additional data.
To create tree nodes, use one of the following methods:
When the user clicks a tree node, the KaxTreeView control can navigate to a linked Web page, post back to the server or select that node. If the NavigateUrl property of a node is set, the KaxTreeView control navigates to the linked page. By default, a linked page is displayed in the same window or frame. To display the linked content in a different window or frame, use the Target property.