Change the size of slots on month view

3 posts, 0 answers
  1. Tina
    Tina avatar
    17 posts
    Member since:
    May 2011

    Posted 18 Nov 2011 Link to this post

    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. Dani
    Admin
    Dani avatar
    848 posts

    Posted 21 Nov 2011 Link to this post

    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 >>
  3. DevCraft banner
  4. Tina
    Tina avatar
    17 posts
    Member since:
    May 2011

    Posted 21 Nov 2011 Link to this post

    Thanks, that solved it.

    Thanks,
    Justyna
Back to Top