Skip to main content

Tab Layout Customization

  • 2 minutes to read

ASPxTabControl and ASPxPageControl allow you to customize a tab layout in various ways.

Tab Position

Tab position can be defined via the ASPxTabControlBase.TabPosition property.

PageControlPosition

Tab Align

To align tabs in the defined position, use the ASPxTabControlBase.TabAlign property. When tabs are positioned to the left or right of the control, TabAlign defines their vertical alignment. In this instance, the Left value is treated as Top and the Right value is always treated as Bottom.

PageControl_Align

Note

The control supports the TabStyle.Width property in relative values (in percentage) if the tab control has a fixed width. Alternatively, set the ASPxTabControlBase.TabAlign property to Justify to allow the tabs to fill the whole control’s width automatically.

Tab Scrolling

To enable tab scrolling, set the ASPxTabControlBase.EnableTabScrolling property to true. In this case, if the control’s size doesn’t allow all tabs to be visible within the tab header simultaneously, specific scroll buttons are displayed, allowing end-users to scroll tabs. Note that tab scrolling works only when the tab header is positioned on the control’s top or bottom.

PageControl_Scrolling

Multi-Row Tabs

To display a tab header in several rows, set the TabBase.NewLine property of the required tab, which starts a new line, to true. Note that multi-row tab representation works only when the tab header is positioned on the control’s top or bottom and tab scrolling is disabled.

PageControl_MultiRow