Data Editors - Common Features Editor Templates


DevExpress MVC extensions support standard the ASP.NET MVC templating system. This demo illustrates how to use DevExpress MVC Data Editors for building custom editor templates.

The Html.EditorFor() method is used to display data editors for model data fields using the required template. This method consults the UIHint attribute value or data type to determine which template to render for the given property.

All the custom editor template files are located in the EditorTemplates subfolder in the ~\Views\Shared project folder. Each template file has the same name as a corresponding data type or UIHint attribute value. The template view code in this demo contains the label that displays the property name and the data editor that allows you to edit the required field.

Version: v2017 vol 1.7
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 or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.