Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

DevExtreme Calendar einer DateBox Auswahl zeitlich beschränken

29.09.2021 (👁763)


Wie kann man die zeitliche Auswahlt, den zeitlichen Rahmen eines Calendar-Objekts begrenzen

Lösung:

Über die 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