Resources - Text Orientation

5 posts, 0 answers
  1. Milivoj Panautovic
    Milivoj Panautovic avatar
    1 posts
    Member since:
    Apr 2010

    Posted 13 Apr 2010 Link to this post

    Hi everyone,

    I'm using TimeLine View, in combination with Resources, and for few days now, I've been trying to customize my scheduler appearance, namely - Text orientation and width properties of the left-most column (Resource Names). Default value for Text orientation is vertical (90° CCW from horizontal). Now, I'd like to set it to horizontal, with "witdh" property sufficient enough for complete text to be visible, but it seems that I am missing something here. Is this possible, and, if yes, how could I do it?

    Many Thanks!
  2. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 16 Apr 2010 Link to this post

    Hi Milivoj Panautovic,

    You can use the following  code snippet before you set the Timeline grouping:
    this.radScheduler.SchedulerElement.SetResourceHeaderAngleTransform(SchedulerViewType.Timeline, 0);

    This will ensure that the Resource header cells are rotated to 0 degrees.

    I hope this helps.

    Boyko Markov
    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.
  3. DevCraft banner
  4. AMF
    AMF avatar
    34 posts
    Member since:
    Mar 2011

    Posted 25 Mar 2013 Link to this post

    Hi Boyko,

    I'v tried this approach, and the rotating works fine. But how do I get the width of the Resource header to fit the full name. Now I can only see the first 3 characters. 

  5. AMF
    AMF avatar
    34 posts
    Member since:
    Mar 2011

    Posted 25 Mar 2013 Link to this post

  6. Anton
    Anton avatar
    167 posts

    Posted 28 Mar 2013 Link to this post


    Thank you for writing.

    Following example demonstrates how you can change the width of the Resources cell when ActiveViewType is Timeline:
    private void Form1_Load(object sender, EventArgs e)
        Resource resource = new Resource();
        resource.Id = new EventId(0);
        resource.Name = "Robert Shoemate";
        resource.Color = Color.Blue;
        resource.Visible = true;
        this.radScheduler1.GroupType = GroupType.Resource;
        this.radScheduler1.SchedulerElement.SetResourceHeaderAngleTransform(SchedulerViewType.Timeline, 0);
        this.radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
        TimelineGroupingByResourcesElement element = this.radScheduler1.SchedulerElement.ViewElement as TimelineGroupingByResourcesElement;
        element.ResourcesHeader.MinSize = new System.Drawing.Size(150, 50);
        SchedulerTimelineViewElement timelineViewElement = element.FindDescendant<SchedulerTimelineViewElement>();
        timelineViewElement.Margin = new Padding(120, 0, 0, 0);

    Attached is a project that comprises the code above.

    If this is not the case, please describe in greater detail what is your goal, so I can provide you with adequate support.

    I hope this helps. Let me know if you have any additional questions.

    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top
DevCraft banner