This is a migrated thread and some comments may be shown as answers.
Radscheduler.AutoSizeAppointments
1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
Joem
Top achievements
Rank 2
Joem asked on 30 Jul 2015, 07:21 AM

I would like to know the proper way to implement AutoSizeAppointments on MonthView where scrollbar on the overflown cell will be visible.

If i set AutoSizeAppointments=false, the scrollbar is visible

but if I set it to true, the scrollbar won't show. 

 

And I think the sample code for Handling overflown cells on this is for resizing the rows or columns

http://www.telerik.com/help/winforms/scheduler-views-month-view.html

 

We are using Q2 2015.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 30 Jul 2015, 02:03 PM
Hello ,

Thank you for writing.

When set in month view and AutoSizeAppointments is false, RadScheduler checks for each cell the count of the overflow appointments so that it can calculate the scrollbars. When the AutoSizeAppointments is set to true there are no overflow appointments because they are auto-sized, e.g. resizing the control forces them arrange int the available space.

If you would like to display the scrollbars in the month view you would need to set the auto size property to false. A suitable place to do this operation is the handler of the ActiveViewChanging event. Please check my code snippet below: 
private void radScheduler1_ActiveViewChanging(object sender, SchedulerViewChangingEventArgs e)
{
    if (e.NewView is SchedulerMonthView)
    {
       this.radScheduler1.AutoSizeAppointments = false;
    }
}

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Asked by
Joem
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Share this question
or