Since I don't see any complaints about this feature, I assume that there is something fundamental not mentioned in any documentation or video that somehow activates this functionality, because following the video and online documentation (i.e. the vary basic examples) I NEVER see the parent child setup (expanders and indentation). Any push in the right direction or information about the latest on where the development of the WPF version of this control is would be greatly appreciated. So far, it seems unusable, but I cannot believe that since this control is in released status for WPF; listed as new. First tried it in our application, but then thought the complexities were causing issues. But now I see that the basic application in its own WPF window/project/solution fails as well.
This was built with the just downloaded Q2 2013 6/11 version. No change from Q3 2012 1017 internal build that we were running.
Very frustrating.
This was built with the just downloaded Q2 2013 6/11 version. No change from Q3 2012 1017 internal build that we were running.
Very frustrating.
<
Window
x:Class
=
"GanttChart.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
Grid
>
<
telerik:RadGanttView
Margin
=
"0"
Name
=
"radGanttView1"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
>
<
telerik:RadGanttView.Columns
>
<
telerik:ColumnDefinition
ColumnWidth
=
"175"
Header
=
"Title"
MemberBinding
=
"{Binding Title}"
/>
<
telerik:ColumnDefinition
ColumnWidth
=
"175"
Header
=
"End"
MemberBinding
=
"{Binding Start}"
/>
<
telerik:ColumnDefinition
ColumnWidth
=
"175"
Header
=
"Start"
MemberBinding
=
"{Binding End}"
/>
</
telerik:RadGanttView.Columns
>
</
telerik:RadGanttView
>
</
Grid
>
</
Window
>
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.GanttView;
using Telerik.Windows.Controls.Scheduling;
namespace GanttChart
{
/// <
summary
>
/// Interaction logic for MainWindow.xaml
/// </
summary
>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
var d = new DateTime(2012, 3, 1);
radGanttView1.VisibleRange = new VisibleRange(d, d.AddMonths(2));
var tasks = new ObservableCollection<
GanttTask
>();
for (int i = 0; i < 4; i++)
{
var gt = new GanttTask(
d.AddDays(14 * i),
d.AddDays(14 * i + 14),
"Title " + i.ToString());
for (int j = 0; j < gt.Duration.Days; j++)
{
var childGT = new GanttTask();
childGT.Start = gt.Start.AddDays(j);
childGT.End = childGT.Start.AddHours(23);
childGT.Title = "Child " + i.ToString() + "/" + j.ToString();
gt.Children.Add(childGT);
}
tasks.Add(gt);
}
radGanttView1.TasksSource = tasks;
radGanttView1.PixelLength = new TimeSpan(0, 1, 0, 0);
}
}
}