Skip to content

Commit fbe498a

Browse files
svdimitrmarin-bratanov
authored andcommitted
chore(docs): updated Events article for the Calendar
1 parent 56b5e5b commit fbe498a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/calendar/events.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ When handling the `ViewChanged` event, you cannot use two-way binding for the `V
8080
8181
## RangeStartChanged
8282

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.
8484

8585
## RangeEndChanged
8686

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.
8888

8989
>caption Example of `Range` Selection with `RangeStartChanged` and `RangeEndChanged` events
9090
@@ -123,12 +123,16 @@ The `RangeEndChanged` fires every time when the selection of dates is finished.
123123
124124
public void StartChangeHandler(DateTime startDate)
125125
{
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
126128
RangeStart = startDate;
127129
GetDates();
128130
}
129131
130132
public void EndChangeHandler(DateTime endDate)
131133
{
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
132136
RangeEnd = endDate;
133137
GetDates();
134138
}

0 commit comments

Comments
 (0)