Skip to content

Commit 1254d9d

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 7c0bd7b commit 1254d9d

30 files changed

+1590
-62
lines changed

docs-aspnet/html-helpers/data-management/grid/columns/multicolumn-headers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Multi-Column Headers
33
page_title: Multi-Column Headers
4-
description: "Get started with the multicolumn headers feature of the Telerik UI Grid HtmlHelper for {{ site.framework }} (Demo) allowing you to group together one or more columns by a common header."
4+
description: "The Multi-Column Header feature of the Telerik UI Grid component for {{ site.framework }} allows you to group one or more columns under a common higher-level header."
55
slug: multicolumn_headers_aspnetcore_grid
6-
position: 4
6+
position: 5
77
---
88

99
# Multi-Column Headers

docs-aspnet/html-helpers/data-management/grid/columns/reordering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Reordering
33
page_title: Reordering of Columns
4-
description: "Get started with the Telerik UI Grid HtmlHelper for {{ site.framework }} (Demo) and learn how to modify its column widths."
4+
description: "With the Telerik UI Grid HtmlHelper component for {{ site.framework }}, you can enable end-users to effortlessly reorder columns."
55
slug: reordercols_aspnetcore_grid
6-
position: 5
6+
position: 6
77
---
88

99
# Reordering of Columns

docs-aspnet/html-helpers/data-management/grid/columns/resizing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Resizing
33
page_title: Resizing of Columns
4-
description: "Get started with the Telerik UI Grid HtmlHelper for {{ site.framework }} and learn how to enable column resizing in order to modify the width of columns."
4+
description: "The Telerik UI Grid HtmlHelper component for {{ site.framework }} comes with a handy Column Resize feature. This allows application users to modify the width of columns and to focus on the content that they need."
55
slug: column_resizing_aspnetcore_grid
6-
position: 5
6+
position: 7
77
---
88

99
# Resizing of Columns
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Sticky
3+
page_title: Sticky Columns
4+
description: "Get started with the Telerik UI Grid HtmlHelper for {{ site.framework }} (Demo) supporting sticky columns that are scrollable, yet, visible at all times while the user scrolls the Grid horizontally."
5+
slug: htmlhelper_grid_sticky_columns
6+
position: 4
7+
---
8+
9+
# Sticky Columns
10+
11+
Sticky columns enable you to display specific columns at all times while the user scrolls the Grid horizontally. This specific column will be scrollable as well, however, it will fix its position to the left/right when it reaches left/right Grid border.
12+
13+
For a runnable example, refer to the demo on [implementing sticky columns in the Grid](https://demos.telerik.com/{{ site.platform }}/grid/sticky-columns).
14+
15+
Тhe following Grid configuration ensures that it will be possible to scroll columns horizontally to make the feature work. If there is not enough horizontal space for the scrollbar, it will not appear.
16+
* Enable [scrolling]({% slug htmlhelpers_grid_aspnetcore_scrolling %}).
17+
* [Stick columns initially](https://docs.telerik.com/{{ site.platform }}/api/Kendo.Mvc.UI.Fluent/GridBoundColumnBuilder#stickysystemboolean) or [enable the stickable property](https://docs.telerik.com/{{ site.platform }}/api/Kendo.Mvc.UI.Fluent/GridBoundColumnBuilder#stickablesystemboolean) so users can stick column on the fly.
18+
* Set a Grid height.
19+
* Set explicit pixel widths to all columns to allow the Grid to adjust the layout of the sticky and non-sticky columns.
20+
* Make sure that the Grid is not [initialized inside a hidden container]({% slug hidden_containers_aspnetcore_grid %}).
21+
22+
> The [JavaScript API of the Grid](https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods) allows you to stick and unstick columns on the fly. However, this is possible only if the stickable configuration is enabled during initialization. If a certain column needs to be open for the users to change its position to sticky/non-sticky this must be specified in the column declaration.
23+
24+
.Columns(columns =>
25+
{
26+
columns.Bound(o => o.OrderID).Stickable(true).Width(150);
27+
columns.Bound(o => o.ShipName).Sticky(true).Width(350);
28+
})
29+
30+
## Known Limitations
31+
32+
* The sticky columns are not supported in Microsoft Internet Explorer. It is a browser limitation due to unsupported gutters.
33+
* Sticky columns cannot work together with [column virtualization](https://demos.telerik.com/{{ site.platform }}/grid/column-virtualization).
34+
* A column cannot be both sticky and [locked](https://demos.telerik.com/{{ site.platform }}/grid/frozen-columns). If it is defined like this, it will be locked and the sticky property will be ignored.
35+
* Grid scrolling must be enabled.
36+
* The first column cannot be sticky.
37+
* The autogenerated expand/collapse columns used by hierarchy and grouping cannot be sticky.
38+
* The [row template](https://demos.telerik.com/{{ site.platform }}/grid/rowtemplate) and [detail template](https://demos.telerik.com/{{ site.platform }}/grid/detailtemplate) are not supported together with sticky columns.
39+
* If [multi-column headers](https://demos.telerik.com/{{ site.platform }}/grid/multicolumnheaders) are used, only a column at the topmost level can be sticky. When the Grid uses Multi-column headers - the "Set Column Position" menu will not be visible.
40+
41+
## See Also
42+
43+
* [Implementing Sticky Columns in the Grid (Demo)](https://demos.telerik.com/{{ site.platform }}/grid/sticky-columns)
44+
* [Knowledge Base](/knowledge-base)
45+
* [JavaScript API Reference of the Grid](/api/javascript/ui/grid)
46+
* [Server-Side API](/api/grid)

docs-aspnet/tag-helpers/data-management/grid/columns.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,35 @@ To enable both virtualized columns and rows:
219219
</kendo-grid>
220220
221221
```
222+
223+
## Sticky Columns
224+
225+
Sticky columns enable you to display specific columns at all times while the user scrolls the Grid horizontally. This specific column will be scrollable as well, however, it will fix its position to the left/right when it reaches left/right Grid border.
226+
227+
For a runnable example, refer to the demo on [implementing sticky columns in the Grid](https://demos.telerik.com/{{ site.platform }}/grid/sticky-columns).
228+
229+
```tagHelper
230+
<column-menu enabled="true"/>
231+
<columns>
232+
<column field="ContactName" sticky="true" stickable="true" title="Contact Name" width="240" />
233+
<column field="ContactTitle" stickable="true" title="Contact Title" />
234+
<column field="CompanyName" stickable="true" title="Company Name" />
235+
<column field="Country" stickable="true" title="Country" width="150" />
236+
</columns>
237+
```
238+
```cshtml
239+
.ColumnMenu()
240+
.Columns(columns =>
241+
{
242+
columns.Bound(o => o.ContactName).Sticky(true).Stickable(true).Width(150);
243+
columns.Bound(o => o.ContactTitle).Stickable(true).Width(250);
244+
columns.Bound(o => o.CompanyName).Stickable(true).Width(350);
245+
columns.Bound(o => o.Country).Stickable(true).Width(300);
246+
247+
})
248+
```
249+
> When it comes to the Grid Sticky Columns there are some known limitation. For more information please refer to [this section of the documentation.](https://docs.telerik.com/aspnet-core/html-helpers/data-management/grid/columns/sticky#known-limitations)
250+
222251
## See Also
223252

224253
* [Basic Usage of the Grid TagHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/grid/tag-helper)

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,7 @@ intro_columns:
20492049
-
20502050
title: "Navigation"
20512051
items:
2052+
"AppBar": "overview_kendoui_appbar_widget"
20522053
"Breadcrumb": "overview_kendoui_breadcrumb_widget"
20532054
"Button": "overview_kendoui_button_widget"
20542055
"ButtonGroup": "overview_kendoui_buttongroup_widget"

docs/api/javascript/ui/gantt.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6934,3 +6934,47 @@ The widget instance which fired the event.
69346934
var gantt = $("#gantt").data("kendoGantt");
69356935
gantt.bind("resizeEnd", gantt_resizeEnd);
69366936
</script>
6937+
6938+
### togglePlannedTasks
6939+
6940+
The event will be raised upon Toolbar PlannedTasks Switch click. As a result, the planned tasks will be either hidden or shown in the Gantt Timeline view. The event is preventable.
6941+
6942+
The event handler function context (available via the this keyword) will be set to the widget instance.
6943+
6944+
#### Event Data
6945+
6946+
##### e.showPlannedTasks `Boolean`
6947+
6948+
Indicates whether the planned tasks are about to be shown (true) or hidden (false).
6949+
6950+
##### e.preventDefault `Function`
6951+
6952+
If invoked prevents the action.
6953+
6954+
##### e.sender `kendo.ui.Gantt`
6955+
6956+
The widget instance which fired the event.
6957+
6958+
#### Example
6959+
6960+
<div id="gantt"></div>
6961+
<script>
6962+
$("#gantt").kendoGantt({
6963+
toolbar: ["plannedTasks"],
6964+
dataSource: [
6965+
{
6966+
id: 1,
6967+
orderId: 0,
6968+
parentId: null,
6969+
title: "Task1",
6970+
plannedStart: new Date("2014/6/17 9:00"),
6971+
plannedEnd: new Date("2014/6/17 11:00"),
6972+
start: new Date("2014/6/17 10:00"),
6973+
end: new Date("2014/6/17 12:00")
6974+
}
6975+
],
6976+
togglePlannedTasks: function(e) {
6977+
console.log(e.showPlannedTasks);
6978+
}
6979+
});
6980+
</script>

0 commit comments

Comments
 (0)