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:
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
Online Demo
Form Layout - Adaptive Grid Layout