Skip to content

Commit 0d450f3

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 09ce83c commit 0d450f3

File tree

19 files changed

+334
-44
lines changed

19 files changed

+334
-44
lines changed

docs-aspnet-core/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The public documentation URL, used for sitemap.xml
2-
url: "http://docs.telerik.com/aspnet-core"
2+
url: "https://docs.telerik.com/aspnet-core"
33

44
# Exclude files which should not be in the output
55
exclude: [readme.md, Gemfile, Gemfile.lock,api_sort.rb]

docs-aspnet-mvc/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The public documentation URL, used for sitemap.xml
2-
url: "http://docs.telerik.com/aspnet-mvc"
2+
url: "https://docs.telerik.com/aspnet-mvc"
33

44
# Exclude files which should not be in the output
55
exclude: [readme.md, Gemfile, Gemfile.lock,api_sort.rb,SlugLog.log]

docs/_assets/stylesheets/_feedback-form.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
#close-button {
2323
display: none;
2424
right: 1.2em;
25-
bottom: 9px;
25+
bottom: 14px;
2626
position: absolute;
2727
cursor: pointer;
2828
}
2929

3030
#feedback-section.fixed #close-button {
3131
display: block;
32-
height: 18px;
33-
width: 18px;
32+
height: 14px;
33+
width: 14px;
3434
}
3535

3636
#close-button img {
37-
width: 18px;
38-
height: 18px;
37+
width: 14px;
38+
height: 14px;
3939
}
4040

4141
#feedback-section .side-title {

docs/_assets/stylesheets/styles.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,18 +1017,18 @@ footer p {
10171017
#close-button {
10181018
display: none;
10191019
right: 1.2em;
1020-
bottom: 9px;
1020+
bottom: 14px;
10211021
position: absolute;
10221022
cursor: pointer; }
10231023

10241024
#feedback-section.fixed #close-button {
10251025
display: block;
1026-
height: 18px;
1027-
width: 18px; }
1026+
height: 14px;
1027+
width: 14px; }
10281028

10291029
#close-button img {
1030-
width: 18px;
1031-
height: 18px; }
1030+
width: 14px;
1031+
height: 14px; }
10321032

10331033
#feedback-section .side-title {
10341034
font-size: 14px;

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The public documentation URL, used for sitemap.xml
2-
url: "http://docs.telerik.com/kendo-ui"
2+
url: "https://docs.telerik.com/kendo-ui"
33

44
# Exclude files which should not be in the output
55
exclude: [readme.md, Gemfile, Gemfile.lock,api_sort.rb]

docs/_layouts/api-index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@
3838
{{ content }}
3939
</article>
4040
</div>
41-
{% if site.ff-sheet-id %}{% include feedback-form.html %}{% endif %}
4241
{% include footer.html %}
4342
</div>

docs/_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
{% if page.slug == 'knowledge_base' %}{% include kb-last-updated-articles.html %} {% else %} {{ content }} {% endif %}
4141
</article>
4242
</div>
43-
{% if page.slug != 'knowledge_base' %}{% if site.ff-sheet-id %}{% include feedback-form.html %}{% endif %}{% endif %}
43+
{% if page.slug != 'knowledge_base' and page.is_main != true %}{% if site.ff-sheet-id %}{% include feedback-form.html %}{% endif %}{% endif %}
4444
{% include footer.html %}
4545
</div>

docs/controls/data-management/grid/excel-export.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To initiate Excel export through code, call the [`saveAsExcel`](/api/javascript/
5757
> **Important**
5858
> * By default, the Grid exports the current page of the data with sorting, filtering, grouping, and aggregates applied.
5959
> * The Grid uses the current column order, visibility, and dimensions to generate the Excel file.
60-
> * The Grid does not export the current CSS theme in the Excel file. For more information on how to change the visual appearance of the Excel document, refer to the below section about [customization of the Excel document]({% slug exporting_excel_kendoui_grid_widget %}#customize-the-excel-document).
60+
> * The Grid does not export the current CSS theme in the Excel file. For more information on how to change the visual appearance of the Excel document, refer to the below section about [customization of the Excel document]({% slug exporting_excel_kendoui_grid_widget %}#excel-customization).
6161
> * The Grid exports only data-bound columns. All columns that do not have their [field](/api/javascript/ui/grid#configuration-columns.field) option set are ignored.
6262
> * The [`format`](/api/javascript/ui/grid#configuration-columns.format) option is not used during export. For more information, refer to the section on [column formats]({% slug exporting_excel_kendoui_grid_widget %}#limitations).
6363
> * The [`template`](/api/javascript/ui/grid#configuration-columns.template) option is not used during export. For more information, refer to the section on [column templates]({% slug exporting_excel_kendoui_grid_widget %}#limitations).

docs/intro/installation/prerequisites.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ As of the Kendo UI 2014 Q2 release, the Kendo UI widgets support [AngularJS](htt
7070
| [Kendo UI 2016.3.914 (R3 2016)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r3-2016) |1.4\*, 1.5\*|Kendo UI provides [limited `ngModel` support]({% slug common_issues_support_angularjs %}#widgets-with-ng-model-directives-reflect-no-model-value) for AngularJS 1.5\*. |
7171
| [Kendo UI 2016.2.504 (R2 2016)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q2-2016) |1.4\*, 1.5\*|Kendo UI provides [limited `ngModel` support]({% slug common_issues_support_angularjs %}#widgets-with-ng-model-directives-reflect-no-model-value) for AngularJS 1.5\*. |
7272
| [Kendo UI 2016.1.112 (Q1 2016)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q1-2016) |1.4\*, 1.5\*|Kendo UI provides [limited `ngModel` support]({% slug common_issues_support_angularjs %}#widgets-with-ng-model-directives-reflect-no-model-value) for AngularJS 1.5\*. |
73-
| [Kendo UI 2015.3.930 (Q3 2015)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/q3-2015) |1.4\*, 1.5\*|Kendo UI provides [limited `ngModel` support]({% slug common_issues_support_angularjs %}#widgets-with-ng-model-directives-reflect-no-model-value) for AngularJS 1.5\*. |
74-
| [Kendo UI 2015.2.624 (Q2 2015)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/q2-2015) |1.3.16|- |
75-
| [Kendo UI 2015.1.318 (Q1 2015)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/q1-2015) |1.3.0 |- |
76-
| [Kendo UI 2014.3.1119 (Q3 2014)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/q3-2014) |1.3.0 |- |
77-
| [Kendo UI 2014.2.716 (Q2 2014)](http://www.telerik.com/support/whats-new/kendo-ui/release-history/q2-2014) |1.2.16|Upgraded to 1.2.21 in subsequent internal builds. |
73+
| [Kendo UI 2015.3.930 (Q3 2015)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q3-2015) |1.4\*, 1.5\*|Kendo UI provides [limited `ngModel` support]({% slug common_issues_support_angularjs %}#widgets-with-ng-model-directives-reflect-no-model-value) for AngularJS 1.5\*. |
74+
| [Kendo UI 2015.2.624 (Q2 2015)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q2-2015) |1.3.16|- |
75+
| [Kendo UI 2015.1.318 (Q1 2015)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q1-2015) |1.3.0 |- |
76+
| [Kendo UI 2014.3.1119 (Q3 2014)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q3-2014) |1.3.0 |- |
77+
| [Kendo UI 2014.2.716 (Q2 2014)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/q2-2014-kendouicomplete-2014-2-716) |1.2.16|Upgraded to 1.2.21 in subsequent internal builds. |
7878

7979
> **Important**
8080
>
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
title: Make diagram take all available white space
3+
description: Make diagram take all available white space
4+
type: how-to
5+
page_title: Make diagram take all available white space | Kendo UI Diagram
6+
slug: diagram-take-all-available-space
7+
tags: diagram, resize, adjust, stretch, fit, space, available, width, container, expand
8+
ticketid: 1146668
9+
res_type: kb
10+
---
11+
12+
## Environment
13+
<table>
14+
<tr>
15+
<td>Created with version</td>
16+
<td>2017.3 913</td>
17+
</tr>
18+
<tr>
19+
<td>Product</td>
20+
<td>Progress® Kendo UI® Diagram</td>
21+
</tr>
22+
</table>
23+
24+
25+
## Description
26+
I would like the diagram to resize in order to take all available space in the container.
27+
28+
29+
## Solution
30+
Call [resize() method](https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram#methods-resize) when the size of the container changes to adjust the diagram size.
31+
32+
33+
```html
34+
<table style="width: 100%">
35+
<tr>
36+
<td width=1>
37+
<div style="width: 250px;" id="text">
38+
Here we have some element. When this is hidden the should expand to fill all the available width on the page. Click below
39+
to hide this text.
40+
</div>
41+
<p />
42+
<h3>
43+
<a id="toggleButton">Toggle</a>
44+
</h3>
45+
</td>
46+
<td>
47+
<div>
48+
<div id="diagram"></div>
49+
</div>
50+
</td>
51+
</tr>
52+
</table>
53+
54+
<script>
55+
function createDiagram() {
56+
$("#diagram").kendoDiagram({
57+
dataSource: {
58+
data: diagramNodes(),
59+
schema: {
60+
model: {
61+
children: "items"
62+
}
63+
}
64+
},
65+
layout: {
66+
type: "tree",
67+
subtype: "down",
68+
horizontalSeparation: 30,
69+
verticalSeparation: 20
70+
},
71+
shapeDefaults: {
72+
width: 40,
73+
height: 40
74+
}
75+
});
76+
}
77+
78+
function diagramNodes() {
79+
var root = { name: "0", items: [] };
80+
addNodes(root, [3, 2, 2]);
81+
return [root];
82+
}
83+
84+
function addNodes(root, levels) {
85+
if (levels.length > 0) {
86+
for (var i = 0; i < levels[0]; i++) {
87+
var node = { name: "0", items: [] };
88+
root.items.push(node);
89+
90+
addNodes(node, levels.slice(1));
91+
}
92+
}
93+
}
94+
95+
$(document).ready(function () {
96+
97+
$("#toggleButton").on("click", function () {
98+
$("#text").toggle();
99+
100+
$("#diagram").data("kendoDiagram").resize();
101+
102+
});
103+
104+
createDiagram();
105+
106+
107+
});
108+
</script>
109+
```

0 commit comments

Comments
 (0)