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) {
// ...
}
}