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

[Solved] Resize Sheduler Appointment subject Height

1 Answer 139 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
wajira
Top achievements
Rank 1
wajira asked on 13 Nov 2009, 06:24 AM
I'm using RAD sheduler in Time line view. My Appointment subjects are little bit long and I need to expand the subject when it gets overflow within cell.
Following image shows the existing 1 and what I needed.

http://img690.imageshack.us/img690/1329/imageim.png


How can I auto-expand these cells.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Nov 2009, 03:07 PM
Hello wajira,

Auto height is not supported for appointments, but you can increase RowHeight just for Timeline view with the following code:

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack & RadScheduler1.SelectedView == SchedulerViewType.TimelineView)
            RadScheduler1.RowHeight = Unit.Pixel(60);
        else
            RadScheduler1.RowHeight = Unit.Pixel(25);
    }
    protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
    {
        if (e.Command == SchedulerNavigationCommand.SwitchToTimelineView)
           RadScheduler1.RowHeight = Unit.Pixel(60);        
        else
           RadScheduler1.RowHeight = Unit.Pixel(25);       
               
    }

You will also have to apply the following css fix if you use the above approach:
.rsTimelineView .rsHorizontalHeaderTable 
    {
        height: 25px !important;    
    }


All the best,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
wajira
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or