Skip to main content

BuilderFactory<TModel> Class

Provides access to ASP.NET Core controls configured by MVC models.

Namespace: DevExpress.AspNetCore

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

Declaration

public class BuilderFactory<TModel> :
    BuilderFactory

Type Parameters

Name Description
TModel

An MVC model type.

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 DevExpress Bootstrap editors rely on the DRY (“Don’t Repeat Yourself”) ideology of ASP.NET Core MVC validation. This ideology implies that you declaratively specify the functionality and behavior of model class properties using Data Annotation attributes. Data validation is performed based on the specified attributes both on the client and server sides.

The code below demonstrates how to configure a TextBoxFor control using the DRY ideology.

@model FormRegistration

@using(Html.BeginRouteForm("components", new { DemoKey = "Editors-Validation" }, FormMethod.Post)) {
    <div class="form-group">
        @(Html.DevExpress()
            .BootstrapTextBoxFor(m => m.Name)
            .CssClasses(css => css.Control("ctrl-fixed-width-lg")))
    </div>

Inheritance

Object
BuilderFactory
BuilderFactory<TModel>

Extension Methods

Show 98 items
See Also