THEMES
THEME SETTINGS

Navigation and Layout - Form Layout Overview

Employees
About the Form Layout

The DevExpress ASP.NET MVC FormLayout extension delivers a comprehensive form design feature set. Use the FormLayout to easily create form layouts of any complexity by combining the order and hierarchy of the provided layout elements.

To create a well-designed form capable of editing Model class instances, simply add the FormLayout to the View and bind its layout item to the Model class fields.

View code:

@Html.DevExpress().FormLayout(settings => {
    settings.Name = "flOverview";
    settings.Items.AddGroupItem(groupSettings => {
        groupSettings.Caption = "Employees";
        groupSettings.Items.Add(m => m.FirstName);
        groupSettings.Items.Add(m => m.LastName);
        groupSettings.Items.Add(m => m.Note, itemSettings => {
            itemSettings.NestedExtensionType =
              FormLayoutNestedExtensionItemType.Memo;
        });
    });
}).GetHtml()

The FormLayout extension will automatically create data editors capable of editing and displaying the required fields, but you will still have the ability to nest your own data editors.

Key Features
  • Binding to Data
    FormLayout can be used to edit and display fields of a Model class instance or another object (e.g., the ViewBag item).
  • Seamless Integration with DevExpress Data Editors
    DevExpress Data Editors can be seamlessly integrated into a FormLayout bound to data. In this case, the nested Data Editor is automatically bound to the corresponding field of the data source.
  • Support for Third-Party Components
    You have the ability to nest any component you wish into the layout item.
  • Help Text Rendering
    FormLayout can render the Help Text - a brief description of the purpose of the nested editor.
  • Groups
    Groups can be rendered as tab containers or group box containers.
Version: v2016 vol 2.4
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.