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

Increase Resource Header width

6 Answers 174 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Mohan
Top achievements
Rank 1
Mohan asked on 11 Aug 2010, 02:40 AM
Hi,

Is there a way to increase the resource header width and the font color.

Please see the attached image.

thanks

6 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Aug 2010, 02:16 PM
Hello Mohan,

Thank you for contacting us.

Please consider the following code snippet which changes the resources appearance:

TimelineGroupingByResourcesElement element = this.radScheduler1.SchedulerElement.ViewElement as TimelineGroupingByResourcesElement;
element.ResourceHeaderWidth = 200;
element.Font = new Font("Arial", 22);
element.ForeColor = Color.Yellow;

I hope you find this information helpful. Should you need any additional assistance, do not hesitate to contact us.

Kind regards,
Stefan
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
0
Mohan
Top achievements
Rank 1
answered on 17 Aug 2010, 03:27 AM
Hi, 

thanks for the reply.

I tried what you suggested but it is not working.

TimelineGroupingByResourcesElement element = this.radScheduler1.SchedulerElement.ViewElement as TimelineGroupingByResourcesElement;

element is null. 

this.radScheduler1.ScheduleElement.ViewElement is of the type Telerik.WinControls.UI.SchedulerTimelineViewElement
0
Dobry Zranchev
Telerik team
answered on 19 Aug 2010, 05:37 PM
Hello Mohan,

Thanks for writing back.

The code snippet of my colleague in the previous post will work only for the SchedulerTimelineViewElement. This implies that before accessing it, you should set the following properties of your scheduler:

this.radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
this.radScheduler1.GroupType = GroupType.Resource;

I hope this helps. Let me know if I can assist you further.

All the best,
Dobry Zranchev
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
0
Kristian
Top achievements
Rank 1
answered on 05 Sep 2010, 01:20 PM
How is this done in VB?

Regards,

Kristian
0
Brennan
Top achievements
Rank 1
answered on 07 Sep 2010, 07:18 PM
Hey Kristian,

http://www.developerfusion.com/tools/convert/csharp-to-vb/   is a great c# to vb converter; I use it daily.

Cheers,

Brennan
0
Dobry Zranchev
Telerik team
answered on 08 Sep 2010, 06:02 PM
Hello Kristian,

You can use Telerik's free code converter to convert C# to VB and vice versa: http://codechanger.com/

Here is the code snippet in VB:
 
Dim element As TimelineGroupingByResourcesElement = TryCast(Me.radScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
element.ResourceHeaderWidth = 200
element.Font = New Font("Arial", 22)
element.ForeColor = Color.Yellow

Me.radScheduler1.ActiveViewType = SchedulerViewType.Timeline
Me.radScheduler1.GroupType = GroupType.Resource


All the best,
Dobry Zranchev
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
Tags
Scheduler and Reminder
Asked by
Mohan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Mohan
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Kristian
Top achievements
Rank 1
Brennan
Top achievements
Rank 1
Share this question
or