This is a migrated thread and some comments may be shown as answers.

Disable previous & next month dates

3 Answers 140 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Muhammad
Top achievements
Rank 1
Muhammad asked on 22 May 2015, 06:26 AM

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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 26 May 2015, 08:18 AM
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

0
Muhammad
Top achievements
Rank 1
answered on 16 Jul 2015, 07:53 AM
Thank you. It did help.
0
Muhammad
Top achievements
Rank 1
answered on 16 Jul 2015, 07:53 AM
Thank you. It did help.
Tags
Calendar
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or