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
Requirement:
I'm binding events to data which is fetched from an api - so when month or week view is changed - or I change from week view to month view at runtime, I need to fetch new data based on the range of dates that are shown in the calendar.
so
is there a way to easily determine the date range currently shown on the calendar (or do I have to deduce this from CalendarLayout and ShownDate property?
is listening to the ShownDate property change the best way to detect that the calendar layout or left/right week/month view has changed?
The text was updated successfully, but these errors were encountered:
I think perhaps you misunderstand slightly
for example - if I'm viewing the calendar in month view of april, then would be handy to access a property like VisibleStartDate and VisibleEndDate - which would be Apr 1 - Apr 30. ie what are all the dates my user is looking at - so I know I need to fetch data for that date range. This is something different to date selection.
So if there aren't properties like above to know this, I guess one can derive the visible dates from SelectedDate + CalendarLayout properties.
I guess ShownDate property change is also the best way to handle submitting a new query for the dates the user is seeing?
So if the user does any user action that changes the visible dates (like via any of the commands above) - I need to submit a new query to fetch data for all the dates they can see.
Currently, there is no specific property for that hence if you can achieve results with ShownDate then use it. I will think about how to simplify this with next versions
Requirement:
I'm binding events to data which is fetched from an api - so when month or week view is changed - or I change from week view to month view at runtime, I need to fetch new data based on the range of dates that are shown in the calendar.
so
The text was updated successfully, but these errors were encountered: