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

GanttView - Columns

1 Answer 130 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 11 Apr 2012, 06:36 PM
I have set up a RadGanttView, and am having 2 issues:

1. At runtime, I am unable to resize the grid on the left.  When I mouse over the splitter, the arrows appear but when I drag left or right, it does nothing.

2. I set up 3 columns. (Title, Start, and End).  However the start and end columns do not get rendered.  I can change the header and width of the title column and it is reflected at runtime, but the start and end columns never get displayed.

I am using 2012 Q1.  Here is my xaml:
<telerik:RadGanttView Name="gntProjects" Grid.Row="1" TasksSource="{Binding GanttData}" SelectedItem="{Binding SelectedTask, Mode=TwoWay}"
                Background="White" VisibleRange="{Binding VisibleRange}" Height="500" PixelLength="{Binding Value, ElementName=sldZoom, Converter={StaticResource TicksToTimeSpanConverter}}">
            <telerik:RadGanttView.TimeRulerLines>
                <telerik:GroupTickLine>
                    <telerik:TickInterval Interval="OneYear"></telerik:TickInterval>
                </telerik:GroupTickLine>
                <telerik:MajorTickLine>
                    <telerik:TickInterval Interval="OneMonth"></telerik:TickInterval>
                </telerik:MajorTickLine>
            </telerik:RadGanttView.TimeRulerLines>
            <telerik:RadGanttView.Columns>
                <telerik:TreeColumnDefinition MemberBinding="{Binding Title}" Header="Project Name" ColumnWidth="300"></telerik:TreeColumnDefinition>
                <telerik:TreeColumnDefinition MemberBinding="{Binding Start, StringFormat=d}" Header="Start Date" ColumnWidth="80"></telerik:TreeColumnDefinition>
                <telerik:TreeColumnDefinition MemberBinding="{Binding End, StringFormat=d}" Header="End Date" ColumnWidth="80"></telerik:TreeColumnDefinition>
            </telerik:RadGanttView.Columns>
        </telerik:RadGanttView>

1 Answer, 1 is accepted

Sort by
0
Justin Lee
Top achievements
Rank 1
answered on 11 Apr 2012, 06:46 PM
Nevermind.  Just fixed both issues.  I was using TreeColumnDefinition instead of ColumnDefinition.
Tags
GanttView
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Justin Lee
Top achievements
Rank 1
Share this question
or