Skip to main content
A newer version of this page is available. .
Tab

LayoutItemCaptionSettings.AllowWrapCaption Property

Specifies whether caption wrapping is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
DefaultBoolean **Default**

A DefaultBoolean object.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Property Paths

You can access this nested property as listed below:

Show 55 property paths
Library Object Type Path to AllowWrapCaption
ASP.NET Bootstrap Controls BootstrapCardViewColumnLayoutItem
.CaptionSettings.AllowWrapCaption
BootstrapCardViewCommandLayoutItem
.CaptionSettings.AllowWrapCaption
BootstrapCardViewFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
BootstrapCardViewLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
BootstrapCardViewTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
BootstrapEditModeCommandLayoutItem
.CaptionSettings.AllowWrapCaption
BootstrapFormLayout
.SettingsItemCaptions.AllowWrapCaption
BootstrapFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
BootstrapGridViewColumnLayoutItem
.CaptionSettings.AllowWrapCaption
BootstrapGridViewFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
BootstrapGridViewLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
BootstrapGridViewTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
BootstrapLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
BootstrapLayoutItem
.CaptionSettings.AllowWrapCaption
BootstrapTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
ASP.NET Web Forms Controls ASPxFormLayout
.SettingsItemCaptions.AllowWrapCaption
CardViewColumnLayoutItem
.CaptionSettings.AllowWrapCaption
CardViewCommandLayoutItem
.CaptionSettings.AllowWrapCaption
CardViewFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
CardViewLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
CardViewTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
ColumnLayoutItem
.CaptionSettings.AllowWrapCaption
CommandLayoutItem
.CaptionSettings.AllowWrapCaption
ContentPlaceholderLayoutItem
.CaptionSettings.AllowWrapCaption
EditModeCommandLayoutItem
.CaptionSettings.AllowWrapCaption
FormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
GridFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
GridLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
GridTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
GridViewColumnLayoutItem
.CaptionSettings.AllowWrapCaption
GridViewFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
GridViewLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
GridViewTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
LayoutGroup
.SettingsItemCaptions.AllowWrapCaption
LayoutGroupBase
.SettingsItemCaptions.AllowWrapCaption
LayoutItem
.CaptionSettings.AllowWrapCaption
FormLayoutSettings<ModelType>
.SettingsItemCaptions.AllowWrapCaption
MVCxCardViewColumnLayoutItem
.CaptionSettings.AllowWrapCaption
MVCxCardViewFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
MVCxCardViewLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
MVCxCardViewTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
MVCxFormLayout
.SettingsItemCaptions.AllowWrapCaption
MVCxFormLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
MVCxFormLayoutGroup<ModelType>
.SettingsItemCaptions.AllowWrapCaption
MVCxFormLayoutItem
.CaptionSettings.AllowWrapCaption
MVCxGridViewColumnLayoutItem
.CaptionSettings.AllowWrapCaption
MVCxGridViewFormLayoutProperties
.SettingsItemCaptions.AllowWrapCaption
MVCxGridViewFormLayoutProperties<ModelType>
.SettingsItemCaptions.AllowWrapCaption
MVCxGridViewLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
MVCxGridViewLayoutGroup<ModelType>
.SettingsItemCaptions.AllowWrapCaption
MVCxGridViewTabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
MVCxGridViewTabbedLayoutGroup<ModelType>
.SettingsItemCaptions.AllowWrapCaption
MVCxTabbedFormLayoutGroup
.SettingsItemCaptions.AllowWrapCaption
MVCxTabbedFormLayoutGroup<ModelType>
.SettingsItemCaptions.AllowWrapCaption
TabbedLayoutGroup
.SettingsItemCaptions.AllowWrapCaption

Remarks

Use the AllowWrapCaption property to specify whether to wrap the Form Layout item’s caption when the control operates in the Adaptive Grid Layout (Breakpoints) mode.

You can specify the width at which the caption wraps using the GridBreakpointSettings.WrapCaptionAtWidth property. If the GridBreakpointSettings.WrapCaptionAtWidth property is not specified, the control doesn’t wrap the caption.


<dx:ASPxFormLayout runat="server" ID="ASPxFormLayout" Width="100%" ClientInstanceName="FormLayout">
    <Items>
        <dx:LayoutGroup Width="100%" Caption="Registration Form" ColumnCount="3">
            <GridSettings StretchLastItem="true" WrapCaptionAtWidth="660">
                <Breakpoints>
                    <dx:LayoutBreakpoint MaxWidth="500" ColumnCount="1" Name="S" />
                    <dx:LayoutBreakpoint MaxWidth="800" ColumnCount="2" Name="M" />
                </Breakpoints>
            </GridSettings>
            <Items>
            ...
            </Items>
        </dx:LayoutGroup>
    </Items>
</dx:ASPxFormLayout>

Concept

Adaptivity

Online Demo

Form Layout - Adaptive Grid Layout

See Also