Skip to content

Commit ccf1963

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent f7d449a commit ccf1963

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+993
-1166
lines changed

docs-aspnet/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,10 @@ navigation:
576576
baseurl: /aspnet-core
577577

578578
## The Kendo UI version used
579-
cdnVersion: "2020.2.617"
579+
cdnVersion: "2020.3.915"
580580

581581
## The MVC Core version used
582-
mvcCoreVersion: "2020.2.617"
582+
mvcCoreVersion: "2020.3.915"
583583

584584
ff-sheet-id: 1mottKpkbJFxkUq6rS3CsPrT8JQOE2JlUtsJBR622cxs
585585

docs-aspnet/html-helpers/interactivity/loader/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Telerik UI Loader HtmlHelper for {{ site.framework }} is a server-side wrapp
1212

1313
The Loader component is a visual indicator that expresses an indeterminate wait time. It informs users about the status of ongoing processes, such as loading an application, submitting a form, saving updates or fetching data.
1414

15-
## Initializing the Badge
15+
## Initializing the Loader
1616

1717
The following example demonstrates how to define the Loader by using the Loader HtmlHelper.
1818

docs-aspnet/html-helpers/scheduling/gantt/binding.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ page_title: Data Binding
44
description: "Learn the binding options for the Telerik UI Gantt HtmlHelper for {{ site.framework }}."
55
previous_url: /helpers/scheduling/gantt/server-binding
66
slug: htmlhelpers_gantt_binding_aspnetcore
7-
position: 2
7+
position: 3
88
---
99

1010
# Data Binding
@@ -22,6 +22,7 @@ The following example demonstrates how to bind the Gantt through the `TaskViewMo
2222
public class TaskViewModel : IGanttTask
2323
{
2424
public int TaskID { get; set; }
25+
//ParentID should be nullable:
2526
public int? ParentID { get; set; }
2627

2728
public string Title { get; set; }

docs-aspnet/html-helpers/scheduling/gantt/columns.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,35 @@ title: Columns
33
page_title: Columns
44
description: "Configure the columns of the Telerik UI Gantt HtmlHelper for {{ site.framework }}."
55
slug: htmlhelpers_gantt_columns_aspnetcore
6-
position: 3
6+
position: 4
77
---
88

99
# Columns
1010

1111
The columns in the TreeList section of the Gantt can be individually configured. The following configuration options are supported:
1212

13-
* `Title` - the header text of the column.
14-
* `Sortable` - whether the column can be sorted, or not.
15-
* `Editable` - whether the column can be edited, or not.
16-
* `Width` - the width of the column.
17-
* `Format` - the format in which the data in the column is represented.
13+
- `Bound`—Binds the task to the specified model field.
14+
- `Columns`—The columns which will be rendered as child columns under this group column header.
15+
- `Editor`—Provides a way to specify a custom editing UI for the column.
16+
- `Editable`—Indicates if the column can be edited.
17+
- `Expandable`—If set to `true`, the column will show the icons that are used for expanding and collapsing child rows. By default, the first column of the TreeList is expandable.
18+
- `Field`—The field from the task model which will be used to populate the column.
19+
- `Filterable`—If set to `true` and if filtering is enabled, a filter menu will be displayed for this column. If set to `false`, the filter menu will not be displayed. By default, a filter menu is displayed for all columns when filtering is enabled through the filterable option.
20+
- `Filterable.Ui`—The `role` data attribute of the widget that is used in the filter menu, or a JavaScript function which initializes that widget.
21+
- `Format`—The format in which the data in the column is represented.
22+
- `HeaderAttributes`—The HTML attributes of the table header cell (`th`) that is rendered for the column.
23+
- `HeaderTemplate`—The template which renders the column header content. By default, the value of the title column option is displayed in the column header cell.
24+
- `HeaderTemplateId`—The id of the header template.
25+
- `Hidden`—If set to `true`, the Gantt will not display the column. By default, all columns are displayed.
26+
- `HtmlAttributes`—The HTML attributes of the table cell (`td`) that is rendered for the column.
27+
- `Menu`—If set to `true`, the Gantt will display the column in the column menu. By default, the column menu includes all data-bound columns.
28+
- `MinScreenWidth`—The pixel screen width below which the column will be hidden. The setting takes precedence over the hidden setting and the two cannot not be used at the same time.
29+
- `Sortable`—Indicates if the column can be sorted. If set to `true` and sorting is enabled, the user can click the column header and sort the treelist by the column field. If set to `false`, sorting will be disabled for this column. By default, all columns are sortable if sorting is enabled though the sortable option.
30+
- `Sortable.Compare`—A JavaScript function for comparing the values.
31+
- `Template`—The template which renders the column content. The Gantt renders table rows (`tr`) which represent the data source items. Each table row consists of table cells (`td`) which represent the treelist columns. By default, the HTML-encoded value of the field is displayed in the column.
32+
- `TemplateId`—The id of the column template.
33+
- `Title`—The header text of the column.
34+
- `Width`—The width of the column.
1835

1936
The example below demonstrates how to configure Gantt columns.
2037

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Layout
3+
page_title: Layout
4+
description: "Learn more about the layout of the Telerik UI Gantt HtmlHelper for {{ site.framework }}."
5+
slug: htmlhelpers_gantt_layout_aspnetcore
6+
position: 2
7+
---
8+
9+
# Layout
10+
11+
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.
12+
13+
## GanttList
14+
15+
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.
16+
17+
* [TreeList Documentation](https://docs.telerik.com/kendo-ui/controls/data-management/treelist/overview)
18+
* [TreeList Demos](https://demos.telerik.com/kendo-ui/treelist/index)
19+
* [TreeList API](/api/javascript/ui/treelist)
20+
21+
The following features of the TreeList are currently not supported by the GanttList.
22+
23+
* Locked columns
24+
* Column commands
25+
* Encoded column value
26+
* Column footer template
27+
* Binding the parent column, in scenarios that involve grouped columns
28+
* More than one level of grouping
29+
30+
### Getting a Reference to the GanttList
31+
32+
The example below demonstrates how to get a reference to a GanttList.
33+
34+
// Place this after the Gantt for {{ site.framework }} declaration.
35+
<script>
36+
$(document).ready(function() {
37+
// The Name() of the Gantt is used to get its client-side instance.
38+
var gantt = $("#gantt").data("kendoGantt");
39+
// Get a reference to the GanttList.
40+
var ganttList = gantt.list;
41+
});
42+
</script>
43+
44+
## Timeline
45+
46+
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.
47+
48+
## See Also
49+
50+
* [Basic Usage of the Gantt HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt)
51+
* [Using the API of the Gantt HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/api)
52+
* [Client-Side API](https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt)

docs-aspnet/html-helpers/scheduling/gantt/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@ The following example demonstrates the basic configuration of the Gantt HtmlHelp
235235

236236
## Functionality and Features
237237

238+
* [Layout]({% slug htmlhelpers_gantt_layout_aspnetcore %})
238239
* [Data binding]({% slug htmlhelpers_gantt_binding_aspnetcore %})
239240
* [Columns]({% slug htmlhelpers_gantt_columns_aspnetcore %})
241+
* [Planned vs Actual]({% slug htmlhelpers_gantt_planned_vs_actual_aspnetcore %})
240242
* [Resources]({% slug htmlhelpers_gantt_resources_aspnetcore %})
241243
* [Templates]({% slug htmlhelpers_gantt_templates_aspnetcore %})
242244
* [Accessibility]({% slug accessibility_aspnetcore_gantt %})
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: Planned vs Actual
3+
page_title: Data Binding
4+
description: "Learn more about how the Telerik UI Gantt HtmlHelper for {{ site.framework }} displays planned and actual dates."
5+
slug: htmlhelpers_gantt_planned_vs_actual_aspnetcore
6+
position: 4
7+
---
8+
9+
# Planned vs Actual
10+
11+
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:
12+
13+
* The actual `end` date of the task is before the planned `end` date - the task is colored green.
14+
* 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.
15+
* The actual `start` date of the task is after the planned `end` date - the task is colored red.
16+
17+
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).
18+
19+
## Configuration
20+
21+
The example below demonstrates how to configure the Gantt to display planned and actual dates.
22+
23+
```
24+
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
25+
.Name("gantt")
26+
.Columns(columns =>
27+
{
28+
columns.Bound(c => c.Title).Title("Task").Editable(true).Sortable(true).Width(200);
29+
columns.Bound(c => c.Start).Title("Actual Start Date").Format("{0:M/d/yyyy}").Width(85);
30+
columns.Bound(c => c.End).Title("Actual End Date").Format("{0:M/d/yyyy}").Width(85);
31+
columns.Bound(c => c.PlannedStart).Title("Planned Start Date").Format("{0:M/d/yyyy}").Width(85);
32+
columns.Bound(c => c.PlannedEnd).Title("Planned End Date").Format("{0:M/d/yyyy}").Width(85);
33+
})
34+
.Views(views =>
35+
{
36+
views.DayView();
37+
views.WeekView(weekView => weekView.Selected(true));
38+
views.MonthView();
39+
})
40+
.ShowPlannedTasks(true)
41+
.Toolbar(t => t.Add().Name("plannedTasks"))
42+
.Editable(e => e.PlannedTasks(true))
43+
.Resizable(true)
44+
.Snap(false)
45+
.DataSource(d => d
46+
.Model(m =>
47+
{
48+
m.Id(f => f.TaskID);
49+
m.ParentId(f => f.ParentID);
50+
m.OrderId(f => f.OrderId);
51+
m.Field(f => f.Expanded).DefaultValue(true);
52+
m.Field(f => f.PlannedStart);
53+
m.Field(f => f.PlannedEnd);
54+
})
55+
.Read("Planned_Vs_Actual_Read_Tasks", "Gantt")
56+
)
57+
.DependenciesDataSource(d => d
58+
.Model(m =>
59+
{
60+
m.Id(f => f.DependencyID);
61+
m.PredecessorId(f => f.PredecessorID);
62+
m.SuccessorId(f => f.SuccessorID);
63+
m.Type(f => f.Type);
64+
})
65+
.Read("Planned_Vs_Actual_Read_Dependencies", "Gantt")
66+
.Create("Planned_Vs_Actual_Create_Dependency", "Gantt")
67+
.Destroy("Planned_Vs_Actual_Destroy_Dependency", "Gantt")
68+
)
69+
)
70+
```
71+
72+
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.
73+
74+
The `ShowPlannedTasks` configuration controls whether planned dates will be shown initially.
75+
76+
Through the `Editable` configuration, you can allow or prevent editing of planned tasks.
77+
78+
## See Also
79+
80+
* [Planned vs Actual (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/planned-vs-actual)
81+
* [Using the API of the Gantt HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/gantt/api)
82+
* [Client-Side API](https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt)

docs-aspnet/html-helpers/scheduling/gantt/resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Resources
33
page_title: Resources
44
description: "Use resources in the Telerik UI Gantt HtmlHelper for {{ site.framework }}."
55
slug: htmlhelpers_gantt_resources_aspnetcore
6-
position: 4
6+
position: 5
77
---
88

99
# Resources

docs-aspnet/html-helpers/scheduling/gantt/templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Templates
33
page_title: Templates
44
description: "Use templates and customize the rendering of the tasks of the Telerik UI Gantt HtmlHelper for {{ site.framework }}."
55
slug: htmlhelpers_gantt_templates_aspnetcore
6-
position: 5
6+
position: 6
77
---
88

99
# Templates

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,10 @@ navigation:
683683
baseurl: /kendo-ui
684684

685685
## The Kendo UI version used
686-
cdnVersion: "2020.2.617"
686+
cdnVersion: "2020.3.915"
687687

688688
## The MVC Core version used
689-
mvcCoreVersion: "2020.2.617"
689+
mvcCoreVersion: "2020.3.915"
690690

691691
## Progress NPM Registry
692692
registry_url: 'https://registry.npm.telerik.com/'

0 commit comments

Comments
 (0)