BuilderFactoryExtensions.BootstrapFormLayout(BuilderFactory, String) Method
In This Article
Creates a Form Layout control with a specified name.
Namespace: DevExpress.AspNetCore
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
#Declaration
public static BootstrapFormLayoutBuilder BootstrapFormLayout(
this BuilderFactory builderFactory,
string name
)
#Parameters
Name | Type | Description |
---|---|---|
builder |
Builder |
A Builder |
name | String | A control name. |
#Returns
Type | Description |
---|---|
Bootstrap |
A builder for a Form Layout control. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
The code sample below demonstrates how you can use this method to create a Form Layout control.
cshtml
@model Person
@(Html.DevExpress()
.BootstrapFormLayout<Person>("formLayoutDefault")
.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