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

GanttView Grid Width

1 Answer 75 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Prolay
Top achievements
Rank 1
Prolay asked on 02 Jan 2013, 06:42 AM
Hi,

I want to set the minimum width of the of the Gantt grid which is visible to the user while the screen opens initially.


Regards
Prolay

1 Answer, 1 is accepted

Sort by
0
Accepted
Ventzi
Telerik team
answered on 03 Jan 2013, 09:06 AM
Hello Prolay,

At this stage there is no built-in way to achieve this, but you could easily override the GanttItemsPresenter Style and redefine the MinWidth of each column in the RadGanntView. The columns in the GanttItemsPresenter template are defined like following:
<telerik:GanttPresenterPanel.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" MinWidth="3" />
    <ColumnDefinition Width="3*" />
    <ColumnDefinition Width="Auto" />
</telerik:GanttPresenterPanel.ColumnDefinitions>

The first column is for the frozen columns, second for the rest of the GanttView grid, the third for the timeline panel and the fourth for the ScrollBar at the end. I've also attached a sample project which demonstrate this solution.

I hope this helps you further.

Greetings,
Ventzi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Prolay
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Share this question
or