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

Timeline view: coloring

1 Answer 58 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 03 Jan 2012, 05:04 AM
Hi,
Is there a way to do the following:
a. color the day in Timeline view, we wanted to color blue if it is a public holiday for that day
b. Freeze the Date header in timeline view, we wanted to freeze the Date row when we want to scroll bottom. Our RADSchedule is very long thus user unable to see the Date header.

Thanks.

Regards,
CH

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 03 Jan 2012, 03:28 PM
Hello,

To color the day cell in Timeline view you could subscribe to the TimeSlotCreated event, and color the time slots if they satisfy certain criteria.
Example:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
    if (e.TimeSlot.Start == DateTime.Today)
    {
        e.TimeSlot.CssClass = "myClass";
    }
}
.myClass
{
    background-color: Red;
}
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"
    OnTimeSlotCreated="RadScheduler1_TimeSlotCreated">

Here is a demo for reference -
http://demos.telerik.com/aspnet-ajax/scheduler/examples/customizetimeslots/defaultcs.aspx

As for the date row in TimelineView -- it stays static when the appointment's container scrolls to the bottom and back to the top. You could take a look at the following demo for more info: RadScheduler / Customization.

Kind regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
CH
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or