Data Editors - Editor Types Date Edit in Date Range mode

Date Range Picker

Validation settings for the Model's "End" property:
 DateRangeAttribute.MinDayCount = 1;
 DateRangeAttribute.MaxDayCount = 30

Two DevExpress ASP.NET MVC Date Edit extensions can be combined to introduce date range selection capabilities in your web application. One editor is used to specify the start date, another – to specify the end date. To link editors, decorate the end-date editor's model field with the DateRange attribute and set the StartDateEditFieldName property of the attribute to the field name of the start-date editor.

You can customize the date range settings using the following attribute properties.

  • MinDayCount - specifies the minimum number of days in a range.
  • MaxDayCount - specifies the maximum number of days in a range.

If the number of days in the specified range exceeds the specified range limits, an error message is displayed when the Submit button is clicked.

Version: v2017 vol 1.6
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.