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

Special Slots and Custom Grouping

5 Answers 94 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 08 Jul 2012, 08:32 PM

Hi,
I followed more or less the example "Special and Read-only Slots"
in order to achieve the desired behavior (show working hours in a different color).
As you can see in the first screen shot (sched01.png), everything works fine.

As soon as I use custom grouping, the working hours are no more visible (see sched02.png).
After deselecting the group item (here: Zimmer 315), the working hours for the selected person are displayed again.

Your help is highly appreciated.

Regards,
Daniel

5 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Jul 2012, 07:07 AM
Hi Daniel,

You should also add resources by which you're grouping, to the Resources collection of the special slots. As it is seen from the screenshot, "Zimmer 315" resource should be defined for the slots.

Hope this helps.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Daniel
Top achievements
Rank 1
answered on 09 Jul 2012, 07:47 AM
Hi Yana

Thank you for your response. Maybe I am wrong, but I thought, when I do the grouping first by "Zimmer 315" (Zimmer = room) and then by person (Manfred xxx), only latter special slot will be displayed. Otherwise, it would not make sense, since there will be tow "overlapping" different slots, one for room and one for person.

Regards,
Daniel
0
Yana
Telerik team
answered on 11 Jul 2012, 11:40 AM
Hello Daniel,

Actually you can set multiple resources to a single Special Slot:

newSlot.Resources.Add(new Resource("Manfred","Person"));
newSlot.Resources.Add(new Resource("Zimmer 315", "Zimmer"));

all the resources by which the view is grouped should be set to the special slot.

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Daniel
Top achievements
Rank 1
answered on 12 Jul 2012, 07:01 AM
Hi Yana

Thank you very much, it's working fine for this particular case now.

But...
Given the follwoing scenario:
- Resource "Manfred(Person)" has an availability (e.g. working hours) from 9:00 to 17:00 on July 12th.
- Resource "Zimmer 315(Zimmer)" is free (e.g. can be booked) from 12:00 to 22:00 on July 12th.
Now when I group by Person and then by Zimmer, I'd like to see the special slot 12:00 to 22:00 on July 12th.
When I group first by Zimmer and then by Person, I'd like to see the special slot 9:00 to 17:00 on July 12th, respectively.
That is, the very last grouping criteria "overrides" all other special slots.

Any hints?

Best regards
Daniel
0
Yana
Telerik team
answered on 16 Jul 2012, 02:36 PM
Hi Daniel,

I am afraid that there is no easy way to handle this scenario. I guess that you should clear all the special slots, than manually merge the hours according to the resource grouping and add the final special slots again.

The other option I would suggest is to create a custom ViewDefinition for each room as demonstrated in the this online example ( the same is available in WPF demos) and to group only by Person resource.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Daniel
Top achievements
Rank 1
Answers by
Yana
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or