No scroll in Month View

4 posts, 0 answers
  1. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 17 Feb 2012 Link to this post

    Hi,

    This is my requirement, In month view no scroll bar should come and it should occupy full height. Say if the screen resolution changes, month view should resize itself to occupy full height also it should display more or less number of appointments based on the height it gets.

    Please let me know if this is feasible. 

    Regards,
    Pooja
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Feb 2012 Link to this post

    Hello Pooja,

    Please, try setting OverFlowBehavior="Expand" for RadScheduler and let me know if this helps you achieve the desired goal.

    Kind regards,
    Peter
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 18 Feb 2012 Link to this post

    Setting this property is not helping me, I want this behavior only for Month View, all other views scroll bars are fine. But this property changes overflow behavior of all other views as well. Please let me know if there is any other way to achieve this
  4. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 21 Feb 2012 Link to this post

    Hi Pooja,

     
    You can set the property only when the navigation command switches to MonthView or in the Page_Load event as shown in the code:

    protected void Page_Load(object sender, EventArgs e)
       {
           if (RadScheduler1.SelectedView==SchedulerViewType.MonthView)
           {
               RadScheduler1.OverflowBehavior = OverflowBehavior.Expand;
           }
       }

    protected
    void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
      {
          if ( e.Command==SchedulerNavigationCommand.SwitchToMonthView)
          {
              if (RadScheduler1.OverflowBehavior == OverflowBehavior.Scroll)
              {
                  RadScheduler1.OverflowBehavior = OverflowBehavior.Expand;
              }
          }
          else
          {
              RadScheduler1.OverflowBehavior = OverflowBehavior.Scroll;
          }
      }

    Hope this will be helpful.

    Greetings,
    Plamen Zdravkov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top