- Home
- Forum
- Xamarin.Forms
- Show only the days of the current month sfsechedule
Show only the days of the current month sfsechedule
hi, is it possible in sfsechedule, in the monthview , show only the days of the current month?
Thank you!!
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
SS
SaiGanesh Sakthivel
Syncfusion Team
June 22, 2020 12:38 PM UTC
Hi Miguel,
Thank you for contacting Syncfusion support.
#Regarding Show only the days of the current month SfSchedule
We would like to inform you that you can achieved your requirement by setting Transparent color to the PreviousMonthTextColor and NextMonthTextColor properties inside the MonthViewCellStyle setting in SfSchedule. Please refer to the following code snippet for your reference.
Code Snippet:
|
<syncfusion:SfSchedule.MonthCellStyle>
<syncfusion:MonthViewCellStyle PreviousMonthTextColor="Transparent" NextMonthTextColor="Transparent" />
</syncfusion:SfSchedule.MonthCellStyle |
We hope this helps. Please let us know if you have any concern.
Regards,
SaiGanesh Sakthivel
Marked as answer
MA
Miguel Angel
June 22, 2020 07:11 PM UTC
perfect,
thank you very much.
The only
thing that the indicator of appointments in days of another month is still
showing.
SS
SaiGanesh Sakthivel
Syncfusion Team
June 23, 2020 05:34 PM UTC
Hi Miguel,
Thank you for the update.
#Regarding show indicator only for current month days
We would like to inform you that you can achieved your requirement by using custom MonthCellTemplate inside MonthViewSetting in SfSchedule. Please refer to the following UG link for creating a custom DataTemplateSelector.
We hope this helps. Please let us know if you have any concern.
Regards,
SaiGanesh Sakthivel
MA
Miguel Angel
June 28, 2020 05:59 PM UTC
thanks, but it's not exactly what I want, the previous or subsequent month's row does not disappear .... and a blank row remains in the calendar.
Anyway thank you very much, great work of yours.
SS
SaiGanesh Sakthivel
Syncfusion Team
June 29, 2020 12:44 PM UTC
Hi Miguel,
#Regarding Show only the days of the current month sfsechedule
We would like to inform you that our implementation considered 6 rows for the calendar month to maintain the cell size of the month when calendar control is navigating between views. If we change the number of rows depending on the VisibleDates, the SizeChanged event will be triggered and each date cell has to be layout which will decrease the calendar layout performance and the month cell UI will also change for each month that doesn't look good. So, we've considered 6 rows to be static, this is Calendar's behavior and UI design.
We hope this helps.
Regards,
SaiGanesh Sakthivel
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
- Marked answer
-
MA Miguel Angel
- Jun 20, 2020 10:39 AM UTC
- Jun 29, 2020 12:44 PM UTC