This question is locked. New answers and comments are not allowed.
Is it possible to get the grouping text to be horizontal in the Scheduleview.
( http://demos.telerik.com/silverlight/#ScheduleView/Grouping/GroupingAndFiltering Rotating "Business layer" 90 degrees. )
( http://demos.telerik.com/silverlight/#ScheduleView/Grouping/GroupingAndFiltering Rotating "Business layer" 90 degrees. )
4 Answers, 1 is accepted
0
Sure, just set Orientation=Vertical on the WeekViewDefinition.
Best wishes,
Valeri Hristov
the Telerik team
Best wishes,
Valeri Hristov
the Telerik team
0
Benny
Top achievements
Rank 1
answered on 25 Mar 2011, 01:14 PM
I still like to have the grouping on the left side but the text horizontal :-/
0
Benny
Top achievements
Rank 1
answered on 25 Mar 2011, 01:23 PM
<
telerik:RadScheduleView.GroupHeaderContentTemplate
>
<
DataTemplate
>
<
telerik:Label
Content
=
"{Binding}"
Width
=
"100"
/>
</
DataTemplate
>
</
telerik:RadScheduleView.GroupHeaderContentTemplate
>
Found a solution :-)
0
Hi Benny,
That's it. Also if you want to rotate the headers in some views and not in other views you can implement your own custom GroupHeaderContentTemplateSelector. You can create a class that extends ScheduleViewDataTemplateSelector, override SelectTemplate and return headers with the proper orientation based on the data you get as parameters in this method.
Note also that a binding to FormattedName would be more correct as the views that group by date use StringFormat properties on the ViewDefinitions to format the dates.
Also all headers of a level in vertical view should have the same Width and all headers in horizontal view should have the same height. (You do set Width="100" correctly)
All the best,
Pana
the Telerik team
That's it. Also if you want to rotate the headers in some views and not in other views you can implement your own custom GroupHeaderContentTemplateSelector. You can create a class that extends ScheduleViewDataTemplateSelector, override SelectTemplate and return headers with the proper orientation based on the data you get as parameters in this method.
Note also that a binding to FormattedName would be more correct as the views that group by date use StringFormat properties on the ViewDefinitions to format the dates.
Also all headers of a level in vertical view should have the same Width and all headers in horizontal view should have the same height. (You do set Width="100" correctly)
All the best,
Pana
the Telerik team