I have following RadGantt chart it is not showing parent child hierarchy properly. it is creating hierarchy but displaying same as parent.
<
telerik:RadGantt
runat
=
"server"
ID
=
"RadGantt1"
SnapToGrid
=
"false"
OnDependencyInsert
=
"RadGantt1_DependencyInsert"
OnDependencyDelete
=
"RadGantt1_DependencyDelete"
OnTaskDelete
=
"RadGantt1_TaskDelete"
OnTaskUpdate
=
"RadGantt1_TaskUpdate"
OnTaskInsert
=
"RadGantt1_TaskInsert"
SelectedView
=
"WeekView"
AutoGenerateColumns
=
"false"
OnPreRender
=
"RadGantt1_PreRender"
>
<
YearView
UserSelectable
=
"true"
/>
<
Columns
>
<
telerik:GanttBoundColumn
DataField
=
"Title"
></
telerik:GanttBoundColumn
>
<
telerik:GanttBoundColumn
DataField
=
"Start"
></
telerik:GanttBoundColumn
>
<
telerik:GanttBoundColumn
DataField
=
"End"
></
telerik:GanttBoundColumn
>
<
telerik:GanttBoundColumn
DataField
=
"Duration"
DataType
=
"DateTime"
HeaderText
=
"Duration"
DataFormatString
=
"{0:HH\:MM\:SS}"
></
telerik:GanttBoundColumn
>
</
Columns
>
<
DataBindings
>
<
TasksDataBindings
IdField
=
"ID"
TitleField
=
"Title"
StartField
=
"Start"
EndField
=
"End"
PercentCompleteField
=
"PercentComplete"
OrderIdField
=
"OrderID"
SummaryField
=
"Summary"
ParentIdField
=
"ParentID"
/>
<
DependenciesDataBindings
IdField
=
"ID"
PredecessorIdField
=
"PredecessorID"
SuccessorIdField
=
"SuccessorID"
TypeField
=
"Type"
/>
</
DataBindings
>
</
telerik:RadGantt
>
while (reader.Read())
{
Task t = new Task();
t.ID = reader.GetValue(0);
t.Title = reader.GetString(1);
t.Start = reader.GetDateTime(2);
t.End = reader.GetDateTime(3);
t.PercentComplete = decimal.Parse(reader.GetValue(4).ToString());
t.OrderID=1;
t.ParentID = reader.GetValue(5);
sessionTasks.Add(t);
}
RadGantt1.DataSource = Tasks;
RadGantt1.DependenciesDataSource = Dependencies;