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

Change the size of slots on month view

2 Answers 123 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 18 Nov 2011, 11:55 PM
I would like to assure that when user opens scheduleview and switches to month view it displays the full week mon-sun without the horizontal scroll bar. By default it's not the case in my application, there is slightly too little space for this. Is there a way to set the width of the day slot on the month view? Or some another way to achive this?

Related question: is it possible to hide the 'go to week' strip on the left? That would save me some space also.

Thanks,
Justyna

2 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 21 Nov 2011, 03:22 PM
Hello Tina,

There are a few properties you can use to accomplish this.

First of all, what stretches the MonthView visible area horizontally are the time ruler items. So you need to use the TimeRulerItemStyleSelector which holds the styles for MonthView time rulers. In particular, you can set a MaxWidth to the TimeRulerMonthViewItemStyle and to the TimeRulerMonthViewTodayItemStyle.

Next, you should also set MinTimeRulerExtent and MaxTimeRulerExtent in the MonthViewDefinition:
<telerikScheduleView:MonthViewDefinition FirstDayOfWeek="Sunday" 
  MaxTimeRulerExtent="360"
  MinTimeRulerExtent="100"   />

Additionally, the simplest way to hide the week group header on the left is the GroupHeaderStyleSelector. The selector contains the MonthViewBottomLevelWeekGroupStyle. Simply set Width="0" to hide the left-side group headers.

I hope this helps.

Regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Tina
Top achievements
Rank 1
answered on 21 Nov 2011, 05:26 PM
Thanks, that solved it.

Thanks,
Justyna
Tags
ScheduleView
Asked by
Tina
Top achievements
Rank 1
Answers by
Dani
Telerik team
Tina
Top achievements
Rank 1
Share this question
or