GanttView - Columns

2 posts, 0 answers
  1. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 11 Apr 2012 Link to this post

    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>

  2. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 11 Apr 2012 Link to this post

    Nevermind.  Just fixed both issues.  I was using TreeColumnDefinition instead of ColumnDefinition.
  3. DevCraft banner
Back to Top