TabContainer - MikhailTymchukDX/AppVeyorTest GitHub Wiki
TabContainer (demo)
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 |
| CssClass | The CSS class override used to define custom look and feel for tabs Remarks: See the Tabs Theming section for more details |
| 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
ActiveTabChanged
Fires on the server side when a tab is changed after a postback
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()