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

How to control the width of the grid and chart

1 Answer 205 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
HCT-CERT
Top achievements
Rank 1
HCT-CERT asked on 11 Jun 2013, 07:42 AM
Hi,

I would like to have the width of the ganntview: 50% for the grid (left side) and 50% for the chart (right side).

Thanks

Madani

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 12 Jun 2013, 08:12 AM
Hi,

In the current version of RadGanttView control in order for the GridView and the TimeLine area to be sized with 50% by 50% you will need to customize the GanttItemsPresenterStyle's Template. In that Template all you need to do is set the second and third ColumnDefinition Width's to 50*. You should not that if there are frozen RadGanttView.Columns in the current version of the GanttView control it is not possible to achieve a 50 by 50 sized areas.

Another approach for achieving the desired behavior is to completely replace the GanttPresenterPanel in that Template with a normal Grid and set its ColumnDefinitions/RowDefinitions. It is worth mentioning that if the control has big data changing the GanttPresenterPanel with a normal Grid could break the built-in virtualization of the control and there could be some performance issues.

We created and attached a sample project for you with the described approach, hope this is helpful.

Regards,
Vladi
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
HCT-CERT
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or