Click or drag to resize
KaxTab Class
Represents a tab in the KaxTabControl control.
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UI.WebControlsWebControl
      Kettic.AspNet.ControlsControlItem
        Kettic.AspNet.ControlsNavigationItem
          Kettic.AspNet.ControlsKaxTab

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 KaxTab : NavigationItem, IKaxTabContainer

The KaxTab type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleKaxTab
Initializes a new instance of the KaxTab class.
Public methodCode exampleKaxTab(String)
Initializes a new instance of the KaxTab class with the specified text data.
Public methodCode exampleKaxTab(String, String)
Initializes a new instance of the KaxTab class with the specified text and value data.
Top
Methods
  NameDescription
Public methodRenderEndTag (Overrides WebControlRenderEndTag(HtmlTextWriter).)
Public methodCode exampleSelectParents
Selects recursively all parent tabs in the hierarchy.
Top
Properties
  NameDescription
Public propertyCode exampleChildGroupCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied to the HTML element containing the child tabs.
Public propertyCode exampleDataItem
Gets the data item that is bound to the tab
(Overrides ControlItemDataItem.)
Public propertyDisabledCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the tab is disabled.
Public propertyDisabledImageUrl
Gets or sets the URL to an image which is displayed when the tab is disabled (its Enabled property is set to false).
Public propertyHoveredCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the tab is hovered with the mouse.
Public propertyHoveredImageUrl
Gets or sets the URL to an image which is displayed when the user hovers the current tab 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 tab.
(Overrides NavigationItemImageUrl.)
Public propertyIsBreak
Gets or sets a value indicating whether next tab will be displayed on a new line.
Public propertyIsSeparator
Gets or sets a value indicating whether the tab will behave as separator.
Public propertyKaxTabScrolling
Gets or sets a value indicating whether the tabcontrol should scroll directly to the next tab.
Public propertyLevel
Gets the level of the current tab.
Public propertyNavigateUrl
Gets or sets the URL to navigate to when the current tab is clicked.
(Overrides NavigationItemNavigateUrl.)
Public propertyOuterCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied on the outmost tab element (<LI>).
Public propertyCode exampleOwner
Gets the IKaxTabContainer instance which contains the current tab.
Public propertyPageView
Gets the KaxPageView activated when the tab is selected.
Public propertyPageViewID
Gets or sets the ID of the KaxPageView in a KaxMultiPage that will be switched when the tab is selected.
Public propertyPostBack
Gets or sets a value indicating whether clicking on the tab will postback.
Public propertyScrollButtonsPosition
The position of the scroll buttons with regards to the tab band.
Public propertyScrollChildren
Gets or sets a value indicating whether the children of the tab will be scrollable.
Public propertyScrollPosition
Gets or sets the position of the scrollable band of tabs relative to the beginning of the scrolling area.
Public propertySelected
Gets or sets a value indicating whether the tab is selected.
Public propertySelectedCssClass
Gets or sets the Cascading Style Sheet (CSS) class applied when the tab is selected.
Public propertySelectedImageUrl
Gets or sets the URL to an image which is displayed when the tab is selected.
Public propertyCode exampleSelectedIndex
Gets or sets the index of the selected child tab.
Public propertySelectedTab
Gets the selected child tab.
Public propertyTabControl
Gets the KaxTabControl instance which contains the current tab.
Public propertyCode exampleTabs
Gets a KaxTabCollection object that contains the child tabs of the current tab.
Public propertyCode exampleTabTemplate
Gets or sets the template for displaying the tab.
Public propertyCode exampleTarget
Gets or sets the target window or frame in which to display the Web page content associated with the current tab.
(Overrides NavigationItemTarget.)
Public propertyText
Gets or sets the text displayed for the current tab.
(Overrides ControlItemText.)
Public propertyValue
Gets or sets custom (user-defined) data associated with the current tab.
(Overrides ControlItemValue.)
Top
Remarks

The KaxTabControl control is made up of tabs. Tabs which are immediate children of the tabcontrol are root tabs. tabs which are children of root tabs are child tabs.

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

To create tabs, use one of the following methods:

  • Use declarative syntax to define tabs inline in your page or user control.
  • Use one of the constructors to dynamically create new instances of the KaxTab class. These tabs can then be added to the Tabs collection of another tab or tabcontrol.
  • Data bind the KaxTabControl control to a data source.

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