Skip to main content

BuilderFactoryExtensions.BootstrapFormLayout(BuilderFactory) Method

Creates a Form Layout control.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapFormLayoutBuilder BootstrapFormLayout(
    this BuilderFactory builderFactory
)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Form Layout settings.

Returns

Type Description
BootstrapFormLayoutBuilder

A builder for a Form Layout control.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create a Form Layout control.

@model Person
@(Html.DevExpress()
    .BootstrapFormLayout<Person>()
    .Items(items => {
        items.AddItem(m => m.FirstName)
            .ColSpanMd(6);
        items.AddItem(m => m.LastName)
            .ColSpanMd(6);
        items.AddItem(m => m.Email)
            .ColSpanMd(6);
        items.AddItem(m => m.Age)
            .ColSpanMd(6);
    })
    .Bind(Model))
See Also