Remove the extra dates Visible out of the month

2 posts, 0 answers
  1. Vishwajit
    Vishwajit avatar
    6 posts
    Member since:
    Dec 2018

    Posted 03 May 2019 Link to this post

    Hi Team,
    I am using RadCalendarView in month view mode with horizontal scroll

    it currently shows previous month's last week dates and next months first week dates as well even when none of the date from that week lies in current display month as you can see in the last row of attached screenshot.

    Is it possible to show only dates for current month ? If the week has any date of current display month then displaying that complete week would be ok.

    Please let me know how we could achieve it.

  2. Yana
    Admin
    Yana avatar
    5024 posts

    Posted 08 May 2019 Link to this post

    Hello Vishwajit,

    I am afraid that hiding the days that are not part of the current month in MonthView is currently not provided by RadCalendar control. I would suggest instead to apply a different styling to those days, so it's more noticeable they're from previous/next month.  The other option is to set MinDate and MaxDate to the first and last day of the current month, respectively - in this case the other dates will be disabled.

    Please go through the following topics for more details on these suggestions:
    RadCalendarView: Customizations
    RadCalendarView: Disabled Dates

    I hope I was of help.

    Regards,
    Yana
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top