You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/calendar/events.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,11 @@ When handling the `ViewChanged` event, you cannot use two-way binding for the `V
80
80
81
81
## RangeStartChanged
82
82
83
-
The `RangeStartChanged` fires every time the user selects a new starting date for the range of dates. The first click on a date in the Calendar will always be the starting date and the range can be consisted of dates only onwards.
83
+
The `RangeStartChanged` fires every time the user selects a new starting date for the range of dates when the Calendar is in `Range` selection mode. The first click on a date in the Calendar will always be the starting date and the range can be consisted of dates only onwards.
84
84
85
85
## RangeEndChanged
86
86
87
-
The `RangeEndChanged` fires every time when the selection of dates is finished.
87
+
The `RangeEndChanged` fires after the `RangeStartChanged` with the `default` value of the model field, and every time when the selection of dates is finished.
88
88
89
89
>caption Example of `Range` Selection with `RangeStartChanged` and `RangeEndChanged` events
90
90
@@ -123,12 +123,16 @@ The `RangeEndChanged` fires every time when the selection of dates is finished.
123
123
124
124
public void StartChangeHandler(DateTime startDate)
125
125
{
126
+
// you have to update the model manually because handling the <Parameter>Changed event does not let you use @bind-<Parameter>
127
+
// not updating the model will effectively cancel the event
126
128
RangeStart = startDate;
127
129
GetDates();
128
130
}
129
131
130
132
public void EndChangeHandler(DateTime endDate)
131
133
{
134
+
// you have to update the model manually because handling the <Parameter>Changed event does not let you use @bind-<Parameter>
135
+
// not updating the model will effectively cancel the event
0 commit comments