Month View Different style for days of previous and next months

2 posts, 0 answers
  1. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 03 Oct 2011 Link to this post

    Hi,

    I have a requirement where I have to display days of previous or next month in different color background. For e.g. current Month is October, so the weeks will be
    25th Sep - 1st Oct
    2nd Oct- 8th Oct
    9th Oct - 15Th Oct
    16Th Oct - 22nd Oct
    23rd Oct- 29th Oct
    30th Oct- 4th Nov

    I want to display 25th Sep to 30th Sep and 1st Nov to 4th Nov in different color.

    Please let me know the way to achieve this.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Oct 2011 Link to this post

    Hi Pooja,

    In order to change the colour of the appointments according to some logic, you could use the AppointmentStyleSelector property of the ScheduleView. You can find an example of its use in this online demo.

    Hope this information helps.

    Best wishes,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top