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

Calendar week visibility

1 Answer 26 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 11 May 2011, 08:49 AM
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!

1 Answer, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 11 May 2011, 04:33 PM
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
Tags
Calendar
Asked by
Anand
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or