CodeDocu.com

 

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>

 

 

DevExtreme Calendar of a DateBox selection time limit

 

 

Asp.Net Core, MVC ; Asp.Net Core Controls DevExteme, DevExpress


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel