Rotate the Resources to horizontaly

1 Answer 49 Views
ScheduleView
Romano
Top achievements
Rank 1
Romano asked on 22 Dec 2022, 02:44 PM

I'm having a problem with the radschedulers resources.

 

they are displayed verticaly. which for me is the most unnatural default setting for a labeling of a row. not many people read from down to up.
most read from left to right. so i would strongly suggest to set this by default on hoizontaly.

anyhow. as you see in the image my resources are written verticaly and i simply want to switch them to horizontaly.

and i dont want to make a custom resource class or custom template for that. it have to be possible without that.

so pls do not just link me this: WPF ScheduleView - Templating the GroupHeaders - Telerik UI for WPF

i
've found Horizontal grouping names and max height in UI for Silverlight | Telerik Forums but its also based on custom template for group headers. i think it would be a total overkill just for the 90degree switch make a custom template.

 

thanks for the help

1 Answer, 1 is accepted

Sort by
1
Stenly
Telerik team
answered on 26 Dec 2022, 02:38 PM

Hello Romano,

An alternative option, to the suggested one from the shared forum thread, would be to utilize the GroupHeaderContentTemplate property. A custom DataTemplate could be created to specify the element that will display the value of the resource.

For example, the following code snippet could be utilized from the forum thread that you have shared, to rotate the content to be displayed horizontally:

<telerik:RadScheduleView.GroupHeaderContentTemplate>
    <DataTemplate>
        <telerik:LayoutTransformControl VerticalAlignment="Top" >
            <telerik:LayoutTransformControl.LayoutTransform>
                <RotateTransform Angle="0" />
            </telerik:LayoutTransformControl.LayoutTransform>
            <ContentPresenter Content="{Binding FormattedName}" Margin="4 1" Height="16" />
        </telerik:LayoutTransformControl>
    </DataTemplate>
</telerik:RadScheduleView.GroupHeaderContentTemplate>

The produced result is as follows:

With this being said, could you give this suggestion a try?

Regards,
Stenly
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Romano
Top achievements
Rank 1
commented on 10 Jan 2023, 10:13 AM

Hello Stenly,

Sorry for the late response. I was on christmas holidays.

Thank you for your answer. It worked perfectly in my projekt.

best regards

Tags
ScheduleView
Asked by
Romano
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or