New to Telerik UI for ASP.NET CoreStart a free 30-day trial

ASP.NET Core Form Overview

The Telerik UI Form TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI Form widget.

The Telerik UI Form for ASP.NET Core allows you to generate and manage forms. Through a variety of configuration options, it makes creating and customizing forms a seamless experience. Achieve the desired form appearance by using default or custom editors, choose layout and orientation, display the editors in groups and columns, and configure validation.

Initializing the Form

The following example demonstrates how to define the Form.

Razor
        @(Html.Kendo().Form<MyApplication.Models.UserViewModel>()
        .Name("form")
        .HtmlAttributes(new { action = "Index", method = "POST" })
        .Validatable(v =>
        {
            v.ValidateOnBlur(true);
            v.ValidationSummary(vs => vs.Enable(true));
        })
        .Items(items =>
        {
            items.AddGroup()
                .Label("Registration Form")
                .Items(i =>
                {
                    i.Add()
                        .Field(f => f.FirstName)
                        .Label(l => l.Text("First Name:"));
                    i.Add()
                        .Field(f => f.LastName)
                        .Label(l => l.Text("Last Name:"));
                });
        });
    )

Functionality and Features

FeatureDescription
ItemsThe configuration of the Form Items allows you to customize their appearance and behavior.
LayoutYou can choose between the default and Grid layout.
GroupsThe Form allows you to group the input fields in logical sections.
OrientationYou can choose between a vertical or horizontal orientation of the labels in the Form.
ValidationThe Form has a built-in validator to enable seamless client-side validaiton.
AccessibilityThe Form is accessible by screen readers and provides WAI-ARIA, Section 508, and WCAG 2.2 support.
Hidden FieldsYou can hide certain fields like the ID.
## Next Steps

See Also