Skip to main content
A newer version of this page is available. .
All docs
V21.2
Tab

LayoutItemCaptionSettings.ChangeCaptionLocationInAdaptiveMode Property

Specifies whether to change the caption location of a layout item when the control is in Adaptive Grid Layout (Breakpoints) mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean ChangeCaptionLocationInAdaptiveMode { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

true, to change the caption location of a layout item when the control is in Adaptive Grid Layout mode.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ChangeCaptionLocationInAdaptiveMode
ASP.NET MVC Extensions FormLayoutSettings<ModelType>
.SettingsItemCaptions .ChangeCaptionLocationInAdaptiveMode
ASP.NET Web Forms Controls ASPxFormLayout
.SettingsItemCaptions .ChangeCaptionLocationInAdaptiveMode
FormLayoutProperties
.SettingsItemCaptions .ChangeCaptionLocationInAdaptiveMode
LayoutGroupBase
.SettingsItemCaptions .ChangeCaptionLocationInAdaptiveMode
LayoutItem
.CaptionSettings .ChangeCaptionLocationInAdaptiveMode

Remarks

Run Demo

Use the ChangeCaptionLocationAtWidth property to specify the width at which the caption location is changed. If the ChangeCaptionLocationAtWidth property is not specified, the control does not change the caption location.

<dx:ASPxFormLayout runat="server" ID="ASPxFormLayout" >
    <SettingsItemCaptions ChangeCaptionLocationInAdaptiveMode="True" />
    <Items>
        <dx:LayoutGroup Width="100%" Caption="Group name">
            <GridSettings ChangeCaptionLocationAtWidth="660">
                ...
            </GridSettings>
            <Items>
                <dx:LayoutItem Caption="First name" >
                    <CaptionSettings ChangeCaptionLocationInAdaptiveMode="Default" />
                    ...
                </dx:LayoutItem>
                ...
            </Items>
        </dx:LayoutGroup>
    </Items>
</dx:ASPxFormLayout>
See Also