Skip to content

<Tabstrip>

<Tabstrip> renders a row of tabs along the top of a region, each with its own panel of content below. Clicking a tab swaps the visible panel. Add <Tab> child tags — one per tab — and place the form's content inside each.

The control is helpful for breaking long forms into shorter, focused sections (e.g. Contact Info, Notes, Preferences). Tab switching is handled in JavaScript with no postback.

JavaScript required

<Tabstrip> relies on inline JavaScript for tab switching. If JavaScript is disabled in the browser, the user only sees the first tab's content.

Example

html
<AddForm>
  ...
  <Tabstrip Font-Bold="True" Font-Names="Arial,Helvetica,sans-serif"
            HoverBackColor="Black" HoverForeColor="White">
    <Tab Text="Customer Info">
      <table>
        <tr>
          <td><Label For="txtFirstName" Text="First Name" /></td>
          <td><TextBox Id="txtFirstName" DataField="FirstName" DataType="String" /></td>
        </tr>
        <tr>
          <td><Label For="txtLastName" Text="Last Name" /></td>
          <td><TextBox Id="txtLastName" DataField="LastName" DataType="String" /></td>
        </tr>
      </table>
    </Tab>
    <Tab Text="Notes">
      <table>
        <tr>
          <td colspan="2">
            <TextArea Id="taNotes" DataField="Notes" DataType="String" />
          </td>
        </tr>
      </table>
    </Tab>
  </Tabstrip>
  <AddButton Text="Add" /> <CancelButton Text="Cancel" />
</AddForm>

Properties

PropertyValuesDefaultDescription
ShowPanelBordersTrue FalseTrueWhen True, draws borders around each tab's content panel
Widthsize100%Width of the tabstrip
HeightsizeHeight of the tabstrip
Alignleft center rightleftHorizontal alignment of the tabs row
VisibleTrue FalseTrueShows or hides the tabstrip
Deprecated Properties (styling)

The tabstrip exposes several legacy color and font properties that produce inline styles. Modern stylesheets should override the rendered tabstrip's CSS instead.

PropertyValuesDefaultDescription
BackColorcolor name | #dddddd#CCCCCCTab background color
BorderColorcolor name | #dddddd#000000Tab border color
ForeColorcolor name | #dddddd#000000Tab text color
SelectedBackColorcolor name | #dddddd#FFFFFFBackground of the active tab
SelectedForeColorcolor name | #dddddd#000000Text color of the active tab
HoverBackColorcolor name | #dddddd#000000Background when hovering a tab
HoverForeColorcolor name | #dddddd#FFFFFFText color when hovering a tab
Font-BoldTrue FalseFalseBold tab labels
Font-ItalicTrue FalseItalic tab labels
Font-NamesstringVerdana, Tahoma, Arial, Helvetica, sans-serifFont family for tab labels
Font-OverlineTrue FalseOverline text decoration
Font-Sizesize11ptFont size of the tab labels
Font-StrikeoutTrue FalseStrikethrough
Font-UnderlineTrue FalseUnderline

Child Tags

TagRequiredDescription
<Tab>requiredOne per tab. Place each tab's HTML and form controls between <Tab> and </Tab>

<Tab>

Each <Tab> declares one tab in the tabstrip. The first tab is selected by default.

AttributeValuesDefaultDescription
Text *stringThe label shown on the tab

The content between <Tab> and </Tab> is what appears in the tab's panel — any HTML, form controls, or nested layout tags are allowed.

* Required attribute