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

GroupHeaderStyleSelector not working

2 Answers 148 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 17 Mar 2011, 10:30 AM

Hi, I've just installed the 2011 Q1 binaries and have found that my GroupHeaderStyleSelector, although still called,  is not being used to style the resource GroupHeaders.

The attached files illustrate the problem:-

presingledayresizeproblem.png - Group Header styling pre-2011 binaries
missinggroupheaderstyling.png - Group Header styling with 2011 Q1 binaries

Please advise what has changed.

Thanks,
Peter. 

2 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 21 Mar 2011, 02:24 PM
Hello Peter,

We have created the GroupHeader Template, Style and StyleSelector properties to allow clients to style the headers but I never believed RadScheduleView will be used in such advanced scenarios. I hope we will create something like pivot grid that will allow easily setting up such layouts. Anyway your application of RadScheduler looks pretty impressive.

We have introduced string format properties that will specify how the times are formatted in each view. Both for GroupHeaders and TimeRulerItems. Probably that is the reason your schedule view does not apply the proper templates anymore. In the screenshots it looks like you are using only timeline view. This view does not group by dates so no date GroupHeaders will be generated. I believe you will not change the orientation either. So you can just set the GroupHeaderContentTemplate to the DataTemplate you used in your previous version. If this does not apply the template you can attach your project in a support ticket so we can take a look for you.

Best wishes,
Pana
the Telerik team
0
Peter
Top achievements
Rank 1
answered on 22 Mar 2011, 12:55 PM
Setting the GroupHeaderStyleSelector="{x: Null}" and setting the GroupHeaderContentTemplate to the desired DataTemplate resolved this issue. Thanks, Pana.
Tags
ScheduleView
Asked by
Peter
Top achievements
Rank 1
Answers by
Pana
Telerik team
Peter
Top achievements
Rank 1
Share this question
or