This is a migrated thread and some comments may be shown as answers.

different row heights in different views

2 Answers 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lukrs
Top achievements
Rank 2
Lukrs asked on 22 Apr 2009, 01:13 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 22 Apr 2009, 02:08 PM
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.
0
Lukrs
Top achievements
Rank 2
answered on 23 Apr 2009, 09:55 AM
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
Tags
Scheduler
Asked by
Lukrs
Top achievements
Rank 2
Answers by
Peter
Telerik team
Lukrs
Top achievements
Rank 2
Share this question
or