Different Color for other month

4 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 02 Jul 2014 Link to this post

    Hi,

    in Outlook - month view - I get the days of the current month in white while the days of the preceding / following months have a different color.
    Your RadCalendar does something like this by formatting the days "non bold".

    Can this be done "out of the box" or do I have to define "special slots" or things like these?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Jul 2014 Link to this post

    Hello Manfred,

    RadScheduleView does not have such a built-in feature. Indeed, you could use SpecialSlots to style the days from the previous/next month differently.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 03 Jul 2014 Link to this post

    Is there a sample for this?

    Hopefully in MVVM "style" (no code behind).

    And if not...

    Am I right that I have to check for every time the user changes the month I have to calculate the visible days from,the previous / next month and create special slots for them?

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Jul 2014 Link to this post

    Hello Manfred,

    We do not have such an example at hand, but you could use VisibleRangeChangeCommand of the ScheduleView and handle it in the ViewModel - there you could calculate the days that are not from the current month and update the SpecialSlots collection accordingly.

    I hope this will help get started. If you have additional issues/questions, write to us again.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top