2 posts, 0 answers
  1. Joem
    Joem avatar
    11 posts
    Member since:
    Oct 2012

    Posted 30 Jul 2015 Link to this post

    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



    We are using Q2 2015.




  2. Hristo
    Hristo avatar
    1520 posts

    Posted 30 Jul 2015 Link to this post

    Hello Joem,

    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.

    Hristo Merdjanov
    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
Back to Top