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

Horizontal text groupnig

4 Answers 82 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Benny
Top achievements
Rank 1
Benny asked on 25 Mar 2011, 12:30 PM
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. )

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 25 Mar 2011, 12:35 PM
Sure, just set Orientation=Vertical on the WeekViewDefinition.

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
Pana
Telerik team
answered on 25 Mar 2011, 04:45 PM
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
Tags
ScheduleView
Asked by
Benny
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Benny
Top achievements
Rank 1
Pana
Telerik team
Share this question
or