-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kendo Bot
committed
Sep 15, 2020
1 parent
f7d449a
commit ccf1963
Showing
45 changed files
with
993 additions
and
1,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: Layout | ||
page_title: Layout | ||
description: "Learn more about the layout of the Telerik UI Gantt HtmlHelper for {{ site.framework }}." | ||
slug: htmlhelpers_gantt_layout_aspnetcore | ||
position: 2 | ||
--- | ||
|
||
# Layout | ||
|
||
The layout of the Gantt consists of a GanttList and a Timeline sections. They are divided by a splitbar, which allows increasing the width of one of the sections at the expense of the other. | ||
|
||
## GanttList | ||
|
||
The GanttList of the Gantt extends the TreeList widget and offers its functionality. For more details on the configuration and features of the TreeList, refer to its documentation and demos. | ||
|
||
* [TreeList Documentation](https://docs.telerik.com/kendo-ui/controls/data-management/treelist/overview) | ||
* [TreeList Demos](https://demos.telerik.com/kendo-ui/treelist/index) | ||
* [TreeList API](/api/javascript/ui/treelist) | ||
|
||
The following features of the TreeList are currently not supported by the GanttList. | ||
|
||
* Locked columns | ||
* Column commands | ||
* Encoded column value | ||
* Column footer template | ||
* Binding the parent column, in scenarios that involve grouped columns | ||
* More than one level of grouping | ||
|
||
### Getting a Reference to the GanttList | ||
|
||
The example below demonstrates how to get a reference to a GanttList. | ||
|
||
// Place this after the Gantt for {{ site.framework }} declaration. | ||
<script> | ||
$(document).ready(function() { | ||
// The Name() of the Gantt is used to get its client-side instance. | ||
var gantt = $("#gantt").data("kendoGantt"); | ||
// Get a reference to the GanttList. | ||
var ganttList = gantt.list; | ||
}); | ||
</script> | ||
|
||
## Timeline | ||
|
||
The Timeline section visualizes the tasks and diplays start and end dates, progress, resources, and dependency relationships between tasks. The Timeline allows different ways of interaction with the tasks. You can resize, move, remove, edit, or change the dependencies of the tasks. | ||
|
||
## See Also | ||
|
||
* [Basic Usage of the Gantt HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt) | ||
* [Using the API of the Gantt HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/api) | ||
* [Client-Side API](https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
docs-aspnet/html-helpers/scheduling/gantt/planned-vs-actual.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
title: Planned vs Actual | ||
page_title: Data Binding | ||
description: "Learn more about how the Telerik UI Gantt HtmlHelper for {{ site.framework }} displays planned and actual dates." | ||
slug: htmlhelpers_gantt_planned_vs_actual_aspnetcore | ||
position: 4 | ||
--- | ||
|
||
# Planned vs Actual | ||
|
||
The `Planned vs Actual` functionality of the Gantt allows you to compare actual `start` and `end` dates to originaly planned dates. If the actual completion date of a task matches the planned end time date, the default task appearance is used. In the scenarios listed below, when there is a difference between an actual and a planned date, the Gantt visualizes it by changing the appearance of the task: | ||
|
||
* The actual `end` date of the task is before the planned `end` date - the task is colored green. | ||
* The actual `end` date of the task is after the planned `end` date - a hatched bar that marks the delay is rendered in the task. | ||
* The actual `start` date of the task is after the planned `end` date - the task is colored red. | ||
|
||
For a full example of the Planned vs Actual functionality, refer to the [Planned vs Actual (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/planned-vs-actual). | ||
|
||
## Configuration | ||
|
||
The example below demonstrates how to configure the Gantt to display planned and actual dates. | ||
|
||
``` | ||
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>() | ||
.Name("gantt") | ||
.Columns(columns => | ||
{ | ||
columns.Bound(c => c.Title).Title("Task").Editable(true).Sortable(true).Width(200); | ||
columns.Bound(c => c.Start).Title("Actual Start Date").Format("{0:M/d/yyyy}").Width(85); | ||
columns.Bound(c => c.End).Title("Actual End Date").Format("{0:M/d/yyyy}").Width(85); | ||
columns.Bound(c => c.PlannedStart).Title("Planned Start Date").Format("{0:M/d/yyyy}").Width(85); | ||
columns.Bound(c => c.PlannedEnd).Title("Planned End Date").Format("{0:M/d/yyyy}").Width(85); | ||
}) | ||
.Views(views => | ||
{ | ||
views.DayView(); | ||
views.WeekView(weekView => weekView.Selected(true)); | ||
views.MonthView(); | ||
}) | ||
.ShowPlannedTasks(true) | ||
.Toolbar(t => t.Add().Name("plannedTasks")) | ||
.Editable(e => e.PlannedTasks(true)) | ||
.Resizable(true) | ||
.Snap(false) | ||
.DataSource(d => d | ||
.Model(m => | ||
{ | ||
m.Id(f => f.TaskID); | ||
m.ParentId(f => f.ParentID); | ||
m.OrderId(f => f.OrderId); | ||
m.Field(f => f.Expanded).DefaultValue(true); | ||
m.Field(f => f.PlannedStart); | ||
m.Field(f => f.PlannedEnd); | ||
}) | ||
.Read("Planned_Vs_Actual_Read_Tasks", "Gantt") | ||
) | ||
.DependenciesDataSource(d => d | ||
.Model(m => | ||
{ | ||
m.Id(f => f.DependencyID); | ||
m.PredecessorId(f => f.PredecessorID); | ||
m.SuccessorId(f => f.SuccessorID); | ||
m.Type(f => f.Type); | ||
}) | ||
.Read("Planned_Vs_Actual_Read_Dependencies", "Gantt") | ||
.Create("Planned_Vs_Actual_Create_Dependency", "Gantt") | ||
.Destroy("Planned_Vs_Actual_Destroy_Dependency", "Gantt") | ||
) | ||
) | ||
``` | ||
|
||
The `plannedTasks` tool set in the `Toolbar` configuration enables a switch in the toolbar of the Gantt that allows toggling the `Planned vs Actual` functionality. | ||
|
||
The `ShowPlannedTasks` configuration controls whether planned dates will be shown initially. | ||
|
||
Through the `Editable` configuration, you can allow or prevent editing of planned tasks. | ||
|
||
## See Also | ||
|
||
* [Planned vs Actual (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/planned-vs-actual) | ||
* [Using the API of the Gantt HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/api) | ||
* [Client-Side API](https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.