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

Slots layering

1 Answer 95 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Nico
Top achievements
Rank 1
Nico asked on 17 May 2011, 08:57 AM
Hello Telerik,

The special slots are really nice to visually represent the resource's availability.
Our resources have default schedules with free (green) and occupied (red) time (with some recurrence).
However on some occasions we need to display an exception on these default schedules (some holiday, maintenance of equipment, sick leave of some person,  a general strike, whatever :-) )

In these occasions, I add a new special slot (and a style selector, and a Style - a reddish hatch or maze - in xaml) and add them to the special slots list. The styles I'm using are semi transparent and I can see all of them on the calendar as expected. However I was unable to control the Z-index, so sometimes I see the maze (exception slot) below and sometimes above the default slots. (I'd like them to stick on top)

I tried to control the layering the way I control the order of shown resources (by sorting them in the ResourceType), but that din't work.
I also tried to control the layering using the Z-index.

UPDATE: sorting the special slots does work. I sort them (in the viewmodel) based on the derived Slot classes. The last in the list is the one on top. Problem solved. (However it would be nice if the Panel.ZIndex would work on the HighlightItemStyle)

Greetz,
Nico

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 19 May 2011, 06:15 PM
Hello,

The ScheduleView layouts several types of items in the same panel (for example group headers, appointment items, special slots etc.) so to sort things out some of these items are set Panel.ZIndices. And it is relatively important these indexes to remain so the appointments do not fall behind the group headers for example. Your case though makes sense so we will check if we can enable the Panel.ZIndices to be set. I can not promise anything though since there are a lot of pros and cons about refactoring the control. I am glad you have managed to find a solution for the problem.

Best wishes,
Pana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Nico
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or