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

radCalendar - Disable Month selector

2 Answers 80 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 22 Aug 2008, 04:33 PM
Is there a means to disable the Month/Year selector?

Thanks,
  Chris

2 Answers, 1 is accepted

Sort by
0
Christopher
Top achievements
Rank 1
answered on 22 Aug 2008, 05:12 PM
Found what I believe will lead to a solution. :)

CalendarNavigationElement calenderNav =  (CalendarNavigationElement)radCalendar.RootElement.Children[0].Children[0].Children[1]; 
calenderNav.Enabled = false;  

This disables the full nav, should just be a matter of getting to the specific control in the tree from here.

I'm continually impressed with the flexibility of this calendar control. =]

RadControlSpy was a great help to figuring this one out.  Will prove to be invaluable I'm sure.

Thanks,

   Chris

0
Nikolay
Telerik team
answered on 26 Aug 2008, 06:45 AM
Hello Christopher,

Thank you for the question and for the feedback.

If you want the buttons to be visible, but not functioning and with disabled grayish look, you can use your own approach. I am glad to see that RadControlSpy was of your help, because we developed it with this purpose - to make your work with our controls easier, giving you the ability to enjoy their rich functionality.

However, in this scenario, we have a special property for the navigation element. Please refer to the following code snippet:
radCalendar1.CalendarElement.CalendarNavigationElement.Enabled = false

Should you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Christopher
Top achievements
Rank 1
Answers by
Christopher
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or