Calendar week visibility

2 posts, 1 answers
  1. AB
    AB avatar
    11 posts
    Member since:
    Apr 2011

    Posted 11 May 2011 Link to this post

    Hi,

    Can we limit the number of rows in the calendar control. for example please see screenshot attached, the month June 2011's 28th week is not necessary to be display in one of our requirement. so is it possible to completely remove that row? rather than having the gray-ed out days of the next week.

    Thanks!
  2. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 11 May 2011 Link to this post

    Hi Anand,

    The element which holds the rows and columns of the calendar, i.e. its ItemsPanelTemplate can be changed. Edit the template of RadCalendar in Expression Blend and you will find the following setter:

    <Setter Property="MonthViewPanel">
                    <Setter.Value>
                        <ItemsPanelTemplate>
                            <Telerik_Windows_Controls_Calendar:CalendarPanel Columns="8" FirstColumn="1" PreserveSpaceForCollapsedChildren="True" Rows="7" VerticalAlignment="Stretch"/>
                        </ItemsPanelTemplate>
                    </Setter.Value>
                </Setter>


    Change the Rows and Columns of the CalendarPanel to whatever number suits your needs.

    I hope this helps.

    Regards,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top