radCalendar - Disable Month selector

3 posts, 0 answers
  1. Christopher
    Christopher avatar
    30 posts
    Member since:
    Jul 2008

    Posted 22 Aug 2008 Link to this post

    Is there a means to disable the Month/Year selector?

    Thanks,
      Chris
  2. Christopher
    Christopher avatar
    30 posts
    Member since:
    Jul 2008

    Posted 22 Aug 2008 Link to this post

    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

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 26 Aug 2008 Link to this post

    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.
Back to Top