Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

TabContainer

MikhailTymchukDX edited this page Apr 12, 2017 · 5 revisions

Demo Page

TabContainer is an ASP.NET AJAX Control, which creates a set of tabs that can be used to organize page content. TabContainer is a host for a number of TabPanel controls.

Properties

Name Description
ActiveTab The current active tab
ActiveTabIndex The first tab to show
ActiveTabIndexForClient The first tab to show
Remarks: For the client side
AutoPostBack Make an auto postback from JavaScript when a tab index changes
CssTheme Gets or sets a CSS theme predefined in a CSS file
Height Height of a tab body (does not include TabPanel headers)
OnClientActiveTabChanged Fires on the client side when a tab is changed
OnDemand Determines whether or not to render/load precise tabs on demand or all tabs on page load
ScrollBars Determines whether or not to display scrollbars (None, Horizontal, Vertical, Both, Auto) in the TabContainer body
Tabs A collection of tabs
TabStripPlacement Determines whether or not to render tabs on top of the container or below (Top, Bottom)
UniqueID AutoPostback ID
UseVerticalStripPlacement Determines whether or not to render tabs on the left or right side of the container
VerticalStripWidth Width of tab panels when tabs are displayed vertically
Width Width of the tab body

Events

Name Description
ActiveTabChanged Fires on the server side when a tab is changed after a postback

Client properties

Name Description
activeTab The currently active tab
activeTabIndex The first tab to show
autoPostBackId AutoPostback ID
onDemand Determines whether or not to render/load tabs on demand or all tabs on page load
scrollBars Determines whether or not to display scrollbars (None, Horizontal, Vertical, Both, Auto) in the TabContainer body
tabs A collection of tabs
tabStripPlacement Determines whether or not to render tabs on top of the container or below (Top, Bottom)
useVerticalStripPlacement Determines whether or not to render tabs on the left or right side of the container

Client methods

Name Description
getFirstTab(includeDisabled) Returns TabContainer's first tab
getLastTab(includeDisabled) Returns TabContainer's last tab
getNearestTab(includeDisabled) Returns TabContainer's nearest tab
getNextTab(includeDisabled) Returns TabContainer's next tab
getPreviousTab(includeDisabled) Returns TabContainer's previous tab
saveClientState() Saves JSON state serialized on the client side

Client events

Name Description
activeTabChanged Fires when a tab is changed

Client properties

activeTab

The currently active tab

Getter name: get_activeTab()
Setter name: set_activeTab(value)

activeTabIndex

The first tab to show

Getter name: get_activeTabIndex()
Setter name: set_activeTabIndex(value)

autoPostBackId

AutoPostback ID

Getter name: get_autoPostBackId()
Setter name: set_autoPostBackId(value)

onDemand

Determines whether or not to render/load tabs on demand or all tabs on page load

Getter name: get_onDemand()
Setter name: set_onDemand(value)

scrollBars

Determines whether or not to display scrollbars (None, Horizontal, Vertical, Both, Auto) in the TabContainer body

Getter name: get_scrollBars()
Setter name: set_scrollBars(value)

tabs

A collection of tabs

Getter name: get_tabs()

tabStripPlacement

Determines whether or not to render tabs on top of the container or below (Top, Bottom)

Getter name: get_tabStripPlacement()
Setter name: set_tabStripPlacement(value)

useVerticalStripPlacement

Determines whether or not to render tabs on the left or right side of the container

Getter name: get_useVerticalStripPlacement()
Setter name: set_useVerticalStripPlacement(value)

Client methods

getFirstTab(includeDisabled)

Returns TabContainer's first tab

Params:

  • includeDisabled
    • Type: Boolean
    • Description: Include disabled tabs

getLastTab(includeDisabled)

Returns TabContainer's last tab

Params:

  • includeDisabled
    • Type: Boolean
    • Description: Include disabled tabs

getNearestTab(includeDisabled)

Returns TabContainer's nearest tab

Params:

  • includeDisabled
    • Type: Boolean
    • Description: Include disabled tabs

getNextTab(includeDisabled)

Returns TabContainer's next tab

Params:

  • includeDisabled
    • Type: Boolean
    • Description: Include disabled tabs

getPreviousTab(includeDisabled)

Returns TabContainer's previous tab

Params:

  • includeDisabled
    • Type: Boolean
    • Description: Include disabled Tabs

saveClientState()

Saves JSON state serialized on the client side

Client events

activeTabChanged

Fires when a tab is changed

Add event handler method: add_activeTabChanged(handler)
Remove event handler method: remove_activeTabChanged(handler)
Raise event method: raise_activeTabChanged()

Clone this wiki locally