Skip to main content

BootstrapClientTabControl.SetActiveTab(tab) Method

Makes the specified tab active within the Tab Control on the client side.

Declaration

SetActiveTab(
    tab: BootstrapClientTab
): void

Parameters

Name Type Description
tab BootstrapClientTab

A BootstrapClientTab object specifying the tab to select.

Remarks

End users are allowed to select tabs via mouse clicks. The Tab Control also provides the ability to select tabs on the client side via code. You can use the SetActiveTab method for this purpose.

Note that the Tab Control always has the active tab and only one tab can be active within the control at the same time. So the SetActiveTab method is in effect if it’s passed a correct tab index which lies in the range of 0 to the ASPxClientTabControlBase.GetTabCount value decremented by one.

See Also