Disable previous & next month dates

4 posts, 1 answers
  1. Muhammad
    Muhammad avatar
    7 posts
    Member since:
    Nov 2014

    Posted 22 May 2015 Link to this post

    Hi,

    I'm working on RadCalendar control and I couldn't find a way to disable previous and next month dates. I'm only interested to show current month dates only. Even if I use CustomStyleSelecter and use transparent foreground for dates, clicking their box navigates to previous or next month. Please let me know the efficient way to achieve the required functionality. Thanks.

  2. Answer
    Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 26 May 2015 Link to this post

    Hello Muhammad,

    Thank you for contacting us.

    The RadCalendar control provides commands that you can use to change the default behavior of the calendar. In your case you can use the CellTap command and disable command execution if the date does not belong to the current month. The context of the command is of type CalendarCellModel. The cells from other months have their CalendarCellModel.IsFromAnotherView property set to true.

    I hope this helps.

    Regards,
    Rosy Topchiyska
    Telerik

  3. Muhammad
    Muhammad avatar
    7 posts
    Member since:
    Nov 2014

    Posted 16 Jul 2015 Link to this post

    Thank you. It did help.
  4. Muhammad
    Muhammad avatar
    7 posts
    Member since:
    Nov 2014

    Posted 16 Jul 2015 Link to this post

    Thank you. It did help.
Back to Top