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

LayoutItemCaptionSettings.AllowWrapCaption Property

OBSOLETE

Use the ChangeCaptionLocationInAdaptiveMode property instead.

Specifies whether caption wrapping is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.Default)]
[Obsolete("Use the ChangeCaptionLocationInAdaptiveMode property instead.")]
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 39 property paths
Library Object Type Path to AllowWrapCaption
ASP.NET Controls and MVC Extensions 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
TabbedLayoutGroup
.SettingsItemCaptions .AllowWrapCaption
ASP.NET MVC Extensions 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
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

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