How to limit the
time selection, the time frame of a Calendar object
Solution:
About the Min Max Optionen
<div class="dx-field">
<div class="dx-field-label">Date List</div>
<div class="dx-field-value">
@(Html.DevExtreme().DateBox()
.DisplayFormat("MMM yyyy")
.Value(DateTime.Now)
.CalendarOptions(
options=>options.ZoomLevel(CalendarZoomLevel.Year)
.Max(DateTime.Today.AddMonths(6))
.Min(DateTime.Today.AddMonths(-6))
)
)
</div>
</div>
|
Asp.Net
Core, MVC ; Asp.Net Core Controls DevExteme, DevExpress