BootstrapPageControl Class

Represents a navigation control made up of multiple tabbed pages.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v20.1.dll

Declaration

[ToolboxTabName("DX.20.1: Bootstrap Controls")]
[DXClientDocumentationProviderWeb("BootstrapPageControl")]
public class BootstrapPageControl :
    ASPxPageControl,
    ISimpleRenderControl,
    IBootstrapTabControlCssClassesOwner
<ToolboxTabName("DX.20.1: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapPageControl")>
Public Class BootstrapPageControl
    Inherits ASPxPageControl
    Implements ISimpleRenderControl,
               IBootstrapTabControlCssClassesOwner

Remarks

NOTE

The BootstrapPageControl control provides you with comprehensive client-side functionality implemented using JavaScript code:

The control's client-side API is enabled if the ASPxTabControlBase.EnableClientSideAPI property is set to true, or the ASPxTabControlBase.ClientInstanceName property is defined, or any client event is handled.

Callbacks vs. Postbacks

Use the page control's ASPxTabControlBase.AutoPostBack property to control whether any end-user manipulation with the control's elements (page tabs) requires a round trip to the server side for further processing.

Round trips to the server can be performed in the following ways:

  • using standard postbacks (the whole page is refreshed)
  • using the AJAX-based callback technology.

You can define which way to use to perform round trips to server using the ASPxPageControl.EnableCallBacks property.

Round trips to the server can be cancelled in a handler of the corresponding client-side event.

Usage Notes

If you want to use a navigation control which only provides a tabbed interface but doesn't contain any pages with child controls, consider using the BootstrapTabControl control.

Examples

This example demonstrates the basic functionality of the Page Control.

The image below shows the result:

BootstrapPageTabControl_Overview

<dx:BootstrapPageControl runat="server">
    <TabPages>
        <dx:BootstrapTabPage Text="Home">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    ...
                </dx:ContentControl>
            </ContentCollection>
        </dx:BootstrapTabPage>
        <dx:BootstrapTabPage Text="Products">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    ...
                </dx:ContentControl>
            </ContentCollection>
        </dx:BootstrapTabPage>
        <dx:BootstrapTabPage Text="Support">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    ...
                </dx:ContentControl>
            </ContentCollection>
        </dx:BootstrapTabPage>
    </TabPages>
</dx:BootstrapPageControl>
See Also