Breaking Change T900424
Visible to All Users

Calendar - The DateExpression property has been replaced with the SelectedDateExpression and SelectedDatesExpression properties

What Changed

We removed the DateExpression property and added new properties instead: SelectedDateExpression and SelectedDatesExpression.

Reasons for Change

The Calendar component includes the SelectedDates property and the SelectedDatesChanged event. In v20.1.6, we also introduced the SelectedDate property and the SelectedDateChanged event.

The DateExpression property did not match the naming rule and did not affect validation in a standard Blazor Edit Form.

Impact on Existing Apps

If you specified the DateExpression property, your code will not compile.

How to Update Existing Apps

Remove the code that uses the DateExpression property and specify the SelectedDateExpression or SelectedDatesExpression property instead.

Razor
<DxCalendar SelectedDate="@SelectedDate" SelectedDateChanged="OnSelectedDateChanged" SelectedDateExpression="@(() => SelectedDate)"> </DxCalendar > @code { DateTime SelectedDate = new DateTime(); // ... void OnSelectedDateChanged(DateTime selectedDate) { // ... } }

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.