Click or drag to resize
KaxSiteMapNode Class
Represents a node in the KaxSiteMap control.
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UI.WebControlsWebControl
      Kettic.AspNet.ControlsControlItem
        Kettic.AspNet.ControlsNavigationItem
          Kettic.AspNet.ControlsKaxSiteMapNode

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public class KaxSiteMapNode : NavigationItem, 
	IKaxSiteMapNodeContainer

The KaxSiteMapNode type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleKaxSiteMapNode
Initializes a new instance of the KaxSiteMapNode class.
Public methodCode exampleKaxSiteMapNode(String, String)
Initializes a new instance of the KaxSiteMapNode class with the specified text, value and URL.
Top
Methods
  NameDescription
Public methodCode exampleRemove
Removes the node from the Nodes collection of its parent
Public methodRenderEndTag (Overrides WebControlRenderEndTag(HtmlTextWriter).)
Top
Properties
  NameDescription
Public propertyCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied by default to the node.
(Overrides WebControlCssClass.)
Public propertyCode exampleDataItem
Gets the data item that is bound to the node
(Overrides ControlItemDataItem.)
Public propertyDisabledCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied to the node when it is disabled.
Public propertyDisabledImageUrl
Gets or sets a value specifying the URL of the image rendered when the node is disabled.
Public propertyEnabled
Gets or sets a value indicating whether the node is enabled.
(Overrides ControlItem.Enabled.)
Public propertyHoveredCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied to the node when the mouse hovers it.
Public propertyHoveredImageUrl
Gets or sets a value specifying the URL of the image rendered when the node is hovered with the mouse.
(Overrides NavigationItemHoveredImageUrl.)
Public propertyCode exampleImageUrl
Gets or sets the URL to an image which is displayed next to the text of a node.
(Overrides NavigationItemImageUrl.)
Public propertyLevel
Gets the level of the node.
Public propertyNavigateUrl
Gets or sets the URL to navigate to when the current node is clicked.
(Overrides NavigationItemNavigateUrl.)
Public propertyCode exampleNodes
Gets a KaxSiteMapNodeCollection object that contains the child nodes of the current KaxSiteMapNode.
Public propertyCode exampleNodeTemplate
Gets or sets the template for displaying the node.
Public propertyOwner
Public propertyParentNode
Gets the parent node of the current node.
Public propertySelected
Gets or sets a value indicating whether the node is selected.
Public propertySelectedCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when node is selected.
Public propertySelectedImageUrl
Gets or sets a value specifying the URL of the image rendered when the node is selected.
Public propertyCode exampleSeparatorTemplate
Gets or sets the separator template for the node.
Public propertySiteMap
Gets the KaxSiteMap which this node belongs to.
Public propertyCode exampleTarget
Gets or sets the target window or frame in which to display the Web page content associated with the current node.
(Overrides NavigationItemTarget.)
Public propertyText
Gets or sets the text displayed for the current node.
(Overrides ControlItemText.)
Public propertyToolTip
Gets or sets the tooltip shown for the node when the user hovers it with the mouse
(Overrides WebControlToolTip.)
Public propertyValue
Gets or sets custom (user-defined) data associated with the current node.
(Overrides ControlItemValue.)
Top
Remarks

The KaxSiteMap control is made up of nodes. Nodes which are immediate children of the control are root nodes. Nodes which are children of other nodes are child nodes.

A node usually stores data in two properties, the Text property and the NavigateUrl property.

To create nodes, use one of the following methods:

  • Data bind the KaxSiteMap control to a data source, for example SiteMapDataSource.
  • Use declarative syntax to define nodes inline in your page or user control.
  • Use one of the constructors to dynamically create new instances of the KaxSiteMap class. These nodes can then be added to the Nodes collection of another node or site map.

When the user clicks a node, the KaxSiteMap control navigates to the linked Web 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.

See Also