KaxMenuItem Class |
Namespace: Kettic.AspNet.Controls
The KaxMenuItem type exposes the following members.
Name | Description | |
---|---|---|
KaxMenuItem | Initializes a new instance of the KaxMenuItem class. | |
KaxMenuItem(String) |
Initializes a new instance of the KaxMenuItem class with the
specified text data.
| |
KaxMenuItem(String, String) |
Initializes a new instance of the KaxMenuItem class with the
specified text and URL to navigate to.
|
Name | Description | |
---|---|---|
Clone | Creates a copy of the current KaxMenuItem object. | |
HighlightPath |
Highlights the path from the item to the top of the menu.
| |
Remove |
Removes the item from its container
|
Name | Description | |
---|---|---|
ClickedCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied when the menu item is
clicked.
| |
ClickedImageUrl |
Gets or sets the path to an image to display for the item when the user clicks the
item.
| |
DataItem | Gets or sets the data item represented by the item. (Overrides ControlItemDataItem.) | |
DisabledCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied when the menu item is
disabled.
| |
DisabledImageUrl | Gets or sets the path to an image to display when the items is disabled. | |
ExpandedCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied when the menu item is
opened (its child items are visible).
| |
ExpandedImageUrl | Gets or sets the path to an image to display when the items is expanded. | |
ExpandMode |
Gets or sets the expand behavior of the menu item.
When set to ExpandMode.WebService the KaxMenuItem will populate its children from the web service specified by the KaxMenu.WebService and KaxMenu.WebServiceMethod properties.
| |
FocusedCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied when the menu item is
focused.
| |
GroupSettings | Specifies the settings for child item behavior. | |
HoveredImageUrl |
Gets or sets the path to an image to display for the item when the user moves the
mouse over the item.
(Overrides NavigationItemHoveredImageUrl.) | |
ImageUrl | Gets or sets the path to an image to display for the item. (Overrides NavigationItemImageUrl.) | |
IsSeparator |
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.
| |
Items |
Gets a KaxMenuItemCollection object that contains the child items of the current KaxMenuItem.
| |
ItemTemplate | Gets or sets the template for displaying the item. | |
Level |
Manages the item level of a particular Item instance. This property allows easy
implementation/separation of the menu items in levels.
| |
Menu | Gets the KaxMenu instance which contains the item. | |
NavigateUrl | Gets or sets the URL to link to when the item is clicked. (Overrides NavigationItemNavigateUrl.) | |
OuterCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied on the outmost item element (<LI>).
| |
Owner |
Gets the IKaxMenuItemContainer object which contains the current menu item.
| |
PostBack |
Gets or sets a value indicating whether clicking on the item will
postback.
| |
Selected |
Gets or sets a value indicating whether the item is selected.
| |
SelectedCssClass |
Gets or sets the Cascading Style Sheet (CSS) class applied when the item is
selected.
| |
SelectedImageUrl |
Gets or sets a value specifying the URL of the image rendered when the item is selected.
| |
Target |
Gets or sets the target window or frame to display the Web page content linked to
when the menu item is clicked.
(Overrides NavigationItemTarget.) | |
Text | Gets or sets the text caption for the menu item. (Overrides ControlItemText.) | |
Value | Gets or sets the value associated with the menu item. (Overrides ControlItemValue.) |
The KaxMenu control is made up of items. Items which are immediate children of the menu are root items. Items which are children of root items are child items.
An item usually stores data in two properties, the Text property and the Value property. The value of the Textproperty is displayed in the KaxMenu control, and the Value property is used to store additional data.
To create items, use one of the following methods:
When the user clicks an item, the KaxMenu control can navigate to a linked Web page, post back to the server or select that item. If the NavigateUrl property of an item is set, the KaxMenu 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.
The KaxMenu control is made up of a hierarchy of menu items represented by KaxMenuItem objects. Menu items at the top level (level 0) that do not have a parent menu item are called root or top-level menu items. A menu item that has a parent menu item is called a submenu item. All root menu items are stored in the Items collection of the menu. Submenu items are stored in a parent menu item's Items collection. You can access a menu item's parent menu item by using the Owner property.
To create the menu items for a KaxMenu control, use one of the following methods:
When the user clicks a menu item, the Menu control can either navigate to a linked Web page or simply post back to the server. If the NavigateUrl property of a menu item is set, the KaxMenu control navigates to the linked page. By default, a linked page is displayed in the same window or frame as the KaxMenu control. To display the linked content in a different window or frame, use the Target property.
Each menu item has a Text and a Value property. The value of the Text property is displayed in the KaxMenu control, while the Value property is used to store any additional data about the menu item.