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

[Solved] Timeline view slot span

1 Answer 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 23 Nov 2009, 01:05 PM
I'll preface this by saying that what I'm after may be similar to the timeline view's TimeLabelSpan, except for slots in resource groupings - if that makes sense.

I have a scheduler control that I'm using to display appointments in timeline view only. Each appointment is assigned a resource and resourcing grouping is enabled.

The timeline view is configured to display 7 days. I have a requirement to modify the view for one of my resources so that there is only one 'slot' for the 7 days being shown. In case that's not clear, I have attached a screenshot of what this might look like.

The points to note are that the top resource grouping has no borders between the day slots and the whole thing would ideally be one table cell with colspan=7 or something.

I'm about to try and do this with some javascript hacks but if there's a 'nice' way of doing this I'd be happy to hear it.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Nov 2009, 02:37 PM
Hello Alex,

You can easily achieve this appearance, but I am not sure if you are looking for some other special functionality. To remove the borders for the first resource, please use the following approach:

protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
    {
        if (RadScheduler1.SelectedView == SchedulerViewType.TimelineView & e.TimeSlot.Resource.Key.ToString() == "1")
        {
            e.TimeSlot.CssClass = "RemoveBorder";
        }
    }

<style type="text/css">
   .RemoveBorder
   {
       border-right: none !important;   
   }
   </style>


Best wishes,
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
Alex
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or