Ask Your Question
2

What is the method to activate the duration between startDate and endDate in SfCalendar?

asked 2023-05-31 23:12:06 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-31 23:17:01 +0000

scrum gravatar image

To activate the duration between startDate and endDate in SfCalendar, you can follow these steps:

  1. Set the startDate and endDate properties of SfCalendar.
calendar.startDate = DateTime.now();
calendar.endDate = DateTime.now().add(Duration(days: 7)); // set end date as 7 days from now
  1. Use a date range to highlight the duration between the startDate and endDate.
calendar.selectionMode = CalendarSelectionMode.range;
calendar.selectedRange = DateRange(calendar.startDate, calendar.endDate);

This will activate the duration between the startDate and endDate in SfCalendar.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-31 23:12:06 +0000

Seen: 9 times

Last updated: May 31 '23