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

Group Header Template

4 Answers 94 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Santor
Top achievements
Rank 1
Santor asked on 23 Jun 2011, 07:46 AM
I'm working on a application where I have two levels of group headers (resourcetypes). I want to change the GroupHeaderTemplateSelector for the top group header.

Can I only apply the custom header template to one header? Or is the GroupHeaderTemplateSelector always for every group header?

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Jun 2011, 12:34 PM
Hi Santor,

You can create a class that inherits ScheduleViewDataTemplateSelector and in its SelectTemplate method tell which DataTemplate to load for each GroupHeader. The approach is demonstrated in this online example.

Hope this helps.

Best wishes,
Yana
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
0
Andrea Rapuzzi
Top achievements
Rank 1
answered on 27 Jun 2011, 02:12 PM
Hi Yana,

I just opened a support ticket about that, because the OrientedGroupHeaderContentTemplateSelector used also in the example is not working anymore with the latest internal build n.620 and it was told to me that it's obsolete, so I was looking for another way to use template with my group header like Santor ...

But I've just noticed that in the example the OrientedGroupHeaderContentTemplateSelector is implemented in a derived class, while in the template of the SP1 2011 it was an internal class with the same name, is it right ?
0
Yana
Telerik team
answered on 29 Jun 2011, 01:06 PM
Hello Andrea,

That's right, in Q2 Beta release OrientedGroupHeaderContentTemplateSelector is obsolete and you should replace it with GroupHeaderTemplateSelector.  The suggested in my previous post example shows how to use the new selector in order to achieve the same as in Q1 result.

Greetings,
Yana
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
0
Andrea Rapuzzi
Top achievements
Rank 1
answered on 29 Jun 2011, 01:13 PM
Hi Yana,

it's exactly what I've done and it woks !

Thanks, have a good day !
Andrea
Tags
ScheduleView
Asked by
Santor
Top achievements
Rank 1
Answers by
Yana
Telerik team
Andrea Rapuzzi
Top achievements
Rank 1
Share this question
or