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

TabPanel

MikhailTymchukDX edited this page Jan 12, 2018 · 6 revisions

Demo Page

TabPanel is a part of the TabContainer element. It can be used to organize page content. Each TabPanel defines its HeaderText or HeaderTemplate as well as the ContentTemplate that defines its content.The most recent tab should remain selected after a postback, and the Enabled state of tabs should be preserved after a postback.

Properties

Name Description
ContentTemplate TemplateInstance.Single ITemplate to use for rendering the body
DynamicContextKey An arbitrary string value to be passed to the dynamically populated Web method
DynamicServiceMethod The name of a method to call on the page or web service
DynamicServicePath The URL of the web service to call
Enabled Determines whether or not to display a tab for the TabPanel by default
Remarks: This can be changed on the client side
HeaderTemplate TemplateInstance.Single ITemplate to use to render the header
HeaderText Text to display in the tab
Remarks: This property renders HTML to a page. Encode this property value as a plain text if the source of the value is not trusted to avoid XSS attacks
OnClientClick The name of a JavaScript function to attach to the tab's client-side Click event
OnClientPopulated A handler to attach to the client-side populated event
OnClientPopulating A handler to attach to the client-side populating event
OnDemandMode Determines whether or not to load a tab (Always, Once, None) when the container's onDemand property is true
ScrollBars Detemines whether or not to display scrollbars (None, Horizontal, Vertical, Both, Auto) in the body of the TabPanel
UpdatePanelID Introduces UpdatePanelID to the client side by prototyping it
WasLoadedOnce Determines the loading status of the tab in Once demand mode

Client properties

Name Description
dynamicContextKey An arbitrary string value to be passed to the dynamically populated web method
dynamicServiceMethod The name of the method to call on the page or web service
dynamicServicePath The URL of the web service to call
enabled Determines whether or not to display the tab for the TabPanel by default
headerTab A header tab
headerText Text to display in the tab
onDemandMode Determines whether or not to load the tab (Always, Once, None) when the container's onDemand property is true
owner The owner TabContainer
ownerID The ID of the owner TabContainer element
scrollBars Determines whether or not to display scrollbars (None, Horizontal, Vertical, Both, Auto) in the body of the TabPanel
tabIndex The current tab index
updatePanelID ID of the panel to update
wasLoadedOnce Determines the loading status of the tab in Once demand mode

Client events

Name Description
click Fires on a click
populated Fires when tab populating is performed
populating Fires when tab populating begins

Client properties

dynamicContextKey

An arbitrary string value to be passed to the dynamically populated web method

Getter name: get_dynamicContextKey()
Setter name: set_dynamicContextKey(value)

dynamicServiceMethod

The name of the method to call on the page or web service

Getter name: get_dynamicServiceMethod()
Setter name: set_dynamicServiceMethod(value)

dynamicServicePath

The URL of the web service to call

Getter name: get_dynamicServicePath()
Setter name: set_dynamicServicePath(value)

enabled

Determines whether or not to display the tab for the TabPanel by default

Getter name: get_enabled()
Setter name: set_enabled(value)

headerTab

A header tab

Getter name: get_headerTab()
Setter name: set_headerTab(value)

headerText

Text to display in the tab

Getter name: get_headerText()
Setter name: set_headerText(value)

onDemandMode

Determines whether or not to load the tab (Always, Once, None) when the container's onDemand property is true

Getter name: get_onDemandMode()
Setter name: set_onDemandMode(value)

owner

The owner TabContainer

Getter name: get_owner()
Setter name: set_owner(value)

ownerID

The ID of the owner TabContainer element

Getter name: get_ownerID()
Setter name: set_ownerID(value)

scrollBars

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

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

tabIndex

The current tab index

Getter name: get_tabIndex()

updatePanelID

ID of the panel to update

Getter name: get_updatePanelID()
Setter name: set_updatePanelID(value)

wasLoadedOnce

Determines the loading status of the tab in Once demand mode

Getter name: get_wasLoadedOnce()
Setter name: set_wasLoadedOnce(value)

Client events

click

Fires on a click

Add event handler method: add_click(handler)
Remove event handler method: remove_click(handler)
Raise event method: raise_click()

populated

Fires when tab populating is performed

Add event handler method: add_populated(handler)
Remove event handler method: remove_populated(handler)
Raise event method: raise_populated()

populating

Fires when tab populating begins

Add event handler method: add_populating(handler)
Remove event handler method: remove_populating(handler)
Raise event method: raise_populating()

Clone this wiki locally