different row heights in different views

3 posts, 1 answers
  1. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 22 Apr 2009 Link to this post

    Hi,

    Where can I apply this to work:

     

    if (this.RadScheduler1.SelectedView == SchedulerViewType.DayView)

     

        RadScheduler1.RowHeight = 50;

    The other views can maintain their own height.

    thanks,
    LP, Luka

  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 22 Apr 2009 Link to this post

    Hi Lukrs,

    Please, try the following:
    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)  
        {  
            if (e.Command == SchedulerNavigationCommand.SwitchToWeekView)  
                RadScheduler1.RowHeight = Unit.Pixel(50);  
            else 
                RadScheduler1.RowHeight = Unit.Pixel(25);  
        } 


    All the best,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 23 Apr 2009 Link to this post

    Hi Peter,

    Thanks for a quick reply. It worked, with a slight correction...I need it for DayView, and I had to set the initial row height to 50, because on first load the NavigationCommand of course isn't triggered.

     
    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
        {
             if (e.Command == SchedulerNavigationCommand.SwitchToDayView)  
                RadScheduler1.RowHeight = Unit.Pixel(50);  
            else
                RadScheduler1.RowHeight = Unit.Pixel(25);  
        }


    Thanks again,
    LP, Lukrs
Back to Top