Click or drag to resize
KaxNavigationItem Class
Represents a item in the KaxNavigationBar control.
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UI.WebControlsWebControl
      Kettic.AspNet.ControlsControlItem
        Kettic.AspNet.ControlsNavigationItem
          Kettic.AspNet.ControlsKaxNavigationItem

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 KaxNavigationItem : NavigationItem, 
	IKaxNavigationItemContainer, ICloneable

The KaxNavigationItem type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleKaxNavigationItem
Initializes a new instance of the KaxNavigationItem class.
Public methodCode exampleKaxNavigationItem(String)
Initializes a new instance of the KaxNavigationItem class with the specified text data.
Public methodCode exampleKaxNavigationItem(String, String)
Initializes a new instance of the KaxNavigationItem class with the specified text and URL to navigate to.
Top
Methods
  NameDescription
Public methodClone
Public methodExpandParentItems
Expands all parent items so the item is visible.
Top
Properties
  NameDescription
Public propertyChildGroupCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied to the element enclosing the child items.
Public propertyChildGroupHeight
Gets or sets the height of the child item group.
Public propertyCode exampleClickedCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the panel item is clicked.
Public propertyContentTemplate
Public propertyCode exampleDataItem
Gets or sets the data item represented by the item.
(Overrides ControlItemDataItem.)
Public propertyDisabledCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the panel item is disabled.
Public propertyDisabledImageUrl
Gets or sets the path to an image to display for the item when it is disabled.
Public propertyExpanded
Gets or sets a value indicating whether the panel item is expanded.
Public propertyExpandedCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the panel item is opened (its child items are visible).
Public propertyExpandedImageUrl
Gets or sets the path to an image to display for the item when it is expanded.
Public propertyFocusedCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the panel item is focused.
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 propertyImagePosition
Gets or sets a value indicating the position of the image within the item.
Public propertyImageUrl
Gets or sets the path to an image to display for the item.
(Overrides NavigationItemImageUrl.)
Public propertyIsSeparator
Sets or gets whether the item is separator. It also represents a logical state of the item. Might be used in some applications for keyboard navigation to omit processing items that are marked as separators.
Public propertyItems
Public propertyCode exampleItemTemplate
Gets or sets the template for displaying the item.
Public propertyLevel
Manages the item level of a particular Item instance. This property allows easy implementation/separation of the panel items in levels.
Public propertyCode exampleNavigateUrl
Gets or sets the URL to link to when the item is clicked.
(Overrides NavigationItemNavigateUrl.)
Public propertyNavigationBar
Gets the KaxNavigationBar instance which contains the item.
Public propertyOwner
Gets the IKaxNavigationItemContainer instance which contains the current item.
Public propertyPostBack
Gets or sets a value indicating whether clicking on the item will postback.
Public propertyPreventCollapse
Gets or sets a value indicating whether clicking on the item will collapse it.
Public propertySelected
Gets or sets a value indicating whether the item is selected.
Public propertySelectedCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the panel item is selected.
Public propertySelectedImageUrl
Gets or sets the path to an image to display for the item when it is selected.
Public propertyCode exampleTarget
Gets or sets the target window or frame to display the Web page content linked to when the panel item is clicked.
(Overrides NavigationItemTarget.)
Public propertyCode exampleText
Gets or sets the text caption for the panel item.
(Overrides ControlItemText.)
Public propertyValue
Gets or sets the value associated with the panel item.
(Overrides ControlItemValue.)
Top
Remarks

The KaxNavigationBar control is made up of items. Items which are immediate children of the navigationbar are root items. Items which are children of root items are child items.

A item usually stores data in two properties, the Text property and the Value property. The value of the Text property is displayed in the KaxNavigationBar control, and the Value property is used to store additional data.

To create panel items, use one of the following methods:

  • Use declarative syntax to define items inline in your page or user control.
  • Use one of the constructors to dynamically create new instances of the KaxNavigationItem class. These items can then be added to the Items collection of another item or navigationbar.
  • Data bind the KaxNavigationBar control to a data source.

When the user clicks a panel item, the KaxNavigationBar control can navigate to a linked Web page, post back to the server or select that item. If the NavigateUrl property of a item is set, the KaxNavigationBar 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.

See Also