Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxFormLayout.ChildContent Property

Specifies the layout element collection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

#Property Value

Type Description
RenderFragment

Layout elements.

#Remarks

A Form Layout can contain items, groups, and tabs within the ChildConent tag, for example:

Razor
<DxFormLayout>
    <ChildContent>
        <DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
            <DxTextBox />
        </DxFormLayoutItem>
    </ChildContent>
</DxFormLayout>

Note

Nested layout elements must conform to the component layout structure. Refer to the following topic for more information: DxFormLayout - Layout Structure.

You can omit the <ChildContent> tag and specify layout elements directly in the <DxFormLayout> tag:

Razor
<DxFormLayout>
    <DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
        <DxTextBox />
    </DxFormLayoutItem>
</DxFormLayout>
See Also