Skip to content

Commit c9d2a27

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent ff0e896 commit c9d2a27

20 files changed

+291
-231
lines changed
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: Custom Theme Created Using Sass ThemeBuilder Doesn't Affect Charts
3-
description: Theme created using ThemeBuilder changes style of every control except the Charts
2+
title: The Custom Theme That Is Created by Using SASS ThemeBuilder Doesn't Affect Charts
3+
description: The theme which is created through the ThemeBuilder changes the style of every Kendo UI control except for the Charts.
44
type: troubleshooting
5-
page_title: Custom Theme Created Using Sass ThemeBuilder Doesn't Affect Charts
5+
page_title: Custom Theme Created through the SASS ThemeBuilder Doesn't Affect the MVC Charts | Kendo UI Charts
66
slug: chart-style-not-affected-by-sass-theme
77
tags: chart, theme, themebuilder, style, sass
88
ticketid: 1141887
99
res_type: kb
10-
1110
---
1211

1312
## Environment
13+
1414
<table>
1515
<tr>
1616
<td>Product</td>
17-
<td>Progress® Kendo UI® Charts for ASP.NET MVC</td>
17+
<td>Progress Kendo UI Charts for ASP.NET MVC</td>
1818
</tr>
1919
<tr>
2020
<td>Operating System</td>
@@ -32,15 +32,15 @@ res_type: kb
3232

3333
## Description
3434

35-
I created a new Sass theme using the ThemeBuilder tool, downloaded it, and added a reference to it in my `Layout.cshtml` file. The theme works as expected throughout all the application but it doesn't affect the charts even though I chose new colors for the series.
35+
I created a new SASS theme by using the Kendo UI ThemeBuilder tool, downloaded it, and added a reference to it in my `Layout.cshtml` file. The theme works as expected for the whole application but it doesn't affect the Charts even though I chose new colors for the series.
3636

37-
## Cause\ Possible Cause(s)
37+
## Cause
3838

39-
As the Charts are very specific Widgets, they require a custom property to be set before recognizing the new styles.
39+
The Charts require you to set a custom property before they recognize the new styles.
4040

4141
## Solution
4242

43-
Set the `theme` property of the Kendo UI Charts to `"sass"`
43+
Set the `theme` property of the Kendo UI Charts to `"sass"`.
4444

4545
````c#
4646
@(Html.Kendo().Chart()
@@ -49,5 +49,6 @@ Set the `theme` property of the Kendo UI Charts to `"sass"`
4949
````
5050

5151
## See Also
52-
* [Progress Sass ThemeBuilder.](http://themebuilder.telerik.com/aspnet-mvc)
53-
* [API Reference for theme property.](https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-theme)
52+
53+
* [Progress SASS ThemeBuilder](http://themebuilder.telerik.com/aspnet-mvc)
54+
* [API Reference of the theme Property](https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-theme)

docs/knowledge-base/dropdownlist-alternate-color-items.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: Alternate Colors in DropDownList Items
3-
description: An example on how to implement alternating colors in a Kendo UI DropDownList
2+
title: Alternate Colors of DropDownList Items
3+
description: An example on how to implement alternating colors in a Kendo UI DropDownList.
44
type: how-to
5-
page_title: Alternate Colors in DropDownList Items
5+
page_title: Alternate Colors of Items | Kendo UI DropDownList
66
slug: dropdownlist-alternate-color-items
77
tags: dropdownlist, dropdown, list, items, color, alternate, background
88
ticketid: 1141949
99
res_type: kb
10-
1110
---
1211

1312
## Environment
13+
1414
<table>
1515
<tr>
1616
<td>Product</td>
17-
<td>DropDownList for Progress® Kendo UI®</td>
17+
<td>Progress Kendo UI DropDownList</td>
1818
</tr>
1919
<tr>
2020
<td>Operating System</td>
@@ -32,11 +32,11 @@ res_type: kb
3232

3333
## Description
3434

35-
How can alternating colors be implemented in the items of a Kendo UI DropDownList?
35+
How can I implement alternating colors in the items of a Kendo UI DropDownList?
3636

3737
## Solution
3838

39-
In a Kendo UI DropDownList, the background color of items can be alternated using CSS:
39+
Use the following CSS rules:
4040

4141
````css
4242
#countries-list ul li:nth-of-type(odd) {
@@ -77,4 +77,4 @@ In a Kendo UI DropDownList, the background color of items can be alternated usin
7777

7878
## See Also
7979

80-
* [DropDownList Overview.](https://docs.telerik.com/kendo-ui/controls/editors/dropdownlist/overview)
80+
* [DropDownList Overview](https://docs.telerik.com/kendo-ui/controls/editors/dropdownlist/overview)

docs/knowledge-base/dropdownlist-cascading-angularjs-webapi.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ res_type: kb
1212
---
1313

1414
## Environment
15+
1516
<table>
1617
<tr>
1718
<td>Product</td>
18-
<td>DropDownList for Progress® Kendo UI®</td>
19+
<td>Progress Kendo UI DropDownList</td>
1920
</tr>
2021
<tr>
2122
<td>Operating System</td>
@@ -34,13 +35,11 @@ res_type: kb
3435

3536
## Description
3637

37-
How can I have cascading DropDownLists configured with transport data binding. I need to implement this with WebAPI and I use AnguarJS
38+
How can I implement cascading DropDownLists, which are configured with the `transport` data binding, together with WebAPI in an AnguarJS application?
3839

3940
## Solution
4041

41-
In order to achieve the desired functionality, you should have the child dropdownlist configured to be aware of his parent widget and from which fields it should cascade. This should be achieved, by setting the **k-cascade-from** and **k-cascade-from-field**.
42-
43-
The example below, demonstrates full implementation of the scenario:
42+
Configure the child DropDownList by setting the `k-cascade-from` and `k-cascade-from-field`. As a result, it "becomes aware" of its parent DropDownList from whose fields it will cascade.
4443

4544
```html
4645

@@ -101,7 +100,7 @@ The example below, demonstrates full implementation of the scenario:
101100
})
102101
</script>
103102

104-
---------Controller Implementatoin-------------
103+
---------Controller Implementation-------------
105104
public class ProductsController : ApiController
106105
{
107106
[Route("api/Products/Get")]

docs/knowledge-base/editor-encoded-special-characters.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Set Encoded Special Characters as Editor Value
3-
description: An example on how to display decoded special characters in the Editor.
2+
title: Set Encoded Special Characters as Editor Values
3+
description: An example on how to display decoded special characters in the Kendo UI Editor.
44
type: how-to
55
page_title: Programmatically set encoded special characters as value | Kendo UI Editor
66
slug: editor-encoded-special-characters
@@ -33,25 +33,25 @@ component: editor
3333

3434
## Description
3535

36-
How can I set encoded special characters as Editor value and display them decoded?
36+
How can I set the encoded special characters as Editor values and display them decoded?
3737

3838
## Solution
3939

40-
Decode the encoded special characters prior to passing them as a parameter to the `value` method of the Editor.
40+
Prior to passing them as a parameter to the `value` method of the Editor, decode the encoded special characters.
4141

4242
```html
4343
<textarea id="editor"></textarea>
4444
<script>
4545
$("#editor").kendoEditor();
46-
46+
4747
var editor = $("#editor").data("kendoEditor");
4848
var encodedString = "&lt;p&gt;Paragraph with a &gt; special character inside.&lt;/p&gt";
4949
var parser = new DOMParser;
5050
var dom = parser.parseFromString(
5151
'<!doctype html><body>' + encodedString,
5252
'text/html');
5353
var decodedString = dom.body.textContent;
54-
54+
5555
editor.value(decodedString);
5656
</script>
5757
```

docs/knowledge-base/gantt-expand-collapse-alltasks.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
---
2-
title: Gantt Rows expand and Collapse All
3-
description: An example on how to implement a functionality to expand/collapse all tasks
2+
title: Expand and Collapse All Gantt Rows
3+
description: An example on how to implement a functionality to expand and collapse all kendo UI Gantt tasks.
44
type: how-to
5-
page_title: Implement Expand/Collapse All Tasks on a Button Click | Kendo UI Gantt
5+
page_title: Implement Expand and Collapse All Tasks on a Button Click | Kendo UI Gantt
66
slug: gantt-expand-collapse-alltasks
7-
position: 0
87
tags: kendo, kendoui, gantt, expand, collapse, all, tasks, button, click
98
ticketid: 1142128
10-
pitsid:
119
res_type: kb
12-
1310
---
1411

1512
## Environment
13+
1614
<table>
1715
<tr>
1816
<td>Product</td>
19-
<td>Gantt for Progress® Kendo UI®</td>
17+
<td>Progress Kendo UI Gantt</td>
2018
</tr>
2119
<tr>
2220
<td>Operating System</td>
@@ -35,16 +33,14 @@ res_type: kb
3533

3634
## Description
3735

38-
I would like to have a button on the page, which should be able to expand/collapse all tasks in my Gantt.
36+
How can I add a button which will expand or collapse all tasks in my Gantt?
3937

4038
## Solution
4139

42-
In order to achieve the desired functionality, you should follow the steps below:
43-
44-
1. Add a button on your page and subscribe for its click event.
45-
1. In the click function, you can get a reference to the DataSource of the Gantt (all tasks rendered in it)
46-
1. Implement a loop, in order to iterate through all tasks.
47-
1. Use set("expanded", [true/false]), in order to manage the expanded state
40+
1. Add a button to your page and subscribe for its `click` event.
41+
1. In the `click` function, get a reference to the DataSource of the Gantt (all tasks that are rendered in it).
42+
1. Implement a loop to iterate through all tasks.
43+
1. Use `set("expanded", [true/false])` to manage the expanded state.
4844

4945
```html
5046

docs/knowledge-base/gantt-tooltip-based-on-custom-field.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Show Different Gantt Task Tooltip Based on a Field in the DataSource
3-
description: An example on how to display different Tooltip content on hovering Kendo UI Gantt tasks based on the value of a custom field.
3+
description: An example on how to display different tooltip content on hovering Kendo UI Gantt tasks based on the value of a custom field.
44
type: how-to
5-
page_title: Show Tooltip content based on Gantt task custom field value | Kendo UI Gantt
5+
page_title: Show Tooltip Content Based on Custom Task Field Value | Kendo UI Gantt
66
slug: gantt-tooltip-based-on-custom-field
77
tags: gantt, show, tooltip, different, task, field, custom, datasource
88
ticketid: 1142071
@@ -33,17 +33,17 @@ component: gantt
3333

3434
## Description
3535

36-
How can I display a different Tooltip for Gantt tasks that have different custom field values.
36+
How can I display a different tooltip for Gantt tasks that have different custom field values?
3737

3838
## Solution
3939

40-
1. Set the `tooltip.template` configuration option of the Gantt.
41-
1. In the template access the custom field value of the task the Tooltip will depend on.
42-
1. Conditionally load different template content based on the custom field value.
40+
1. Set the `tooltip.template` configuration option of the Gantt.
41+
1. In the template, access the custom field value of the task that the tooltip will depend on.
42+
1. Based on the custom field value, conditionally load different template content.
4343

4444
```html
4545
<div id="gantt"></div>
46-
46+
4747
<script type="text/x-kendo-template" id="myTemplate">
4848
#if(task.customField == "type1"){#
4949
<div style="background-color: lightgreen;">Type 1 tooltip template</div>
@@ -53,7 +53,7 @@ How can I display a different Tooltip for Gantt tasks that have different custom
5353
<div>#: task.title #</div>
5454
#}#
5555
</script>
56-
56+
5757
<script>
5858
$("#gantt").kendoGantt({
5959
tooltip: {
Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Pass additional parameters to custom DataSource
3-
description: An example on how to send additional parameters to a custom DataSource
2+
title: Pass Additional Parameters to Custom DataSource
3+
description: An example on how to send additional parameters to a custom DataSource in the Kendo UI Grid.
44
type: how-to
5-
page_title: Pass parameters to custom DataSource | Telerik Grid for ASP.NET MVC
5+
page_title: Pass Parameters to Custom DataSource in the Grid | UI for ASP.NET MVC
66
slug: grid-additional-parameters-custom-datasource
77
tags: grid, custom, datasource, additional, parameters
88
res_type: kb
@@ -24,35 +24,36 @@ component: grid
2424

2525
## Description
2626

27-
I have a hierarchical Grid with [Custom DataSource](http://demos.telerik.com/aspnet-mvc/grid/custom-datasource). I have a ClientHandlerDescriptor defined as [described here](https://docs.telerik.com/aspnet-mvc/getting-started/custom-datasource#common-scenarios) and would like to pass additional parameters to the ClientHandlerDescriptor.
27+
I have a hierarchical Grid with a [custom DataSource](http://demos.telerik.com/aspnet-mvc/grid/custom-datasource) and a `ClientHandlerDescriptor` which is defined as [described here](https://docs.telerik.com/aspnet-mvc/getting-started/custom-datasource#common-scenarios).
2828

29-
## Solution
29+
How can I pass additional parameters to the `ClientHandlerDescriptor`?
3030

31-
If you are using ClientHandlerDescriptor for reading the data you can define the JavaScript handler like below.
32-
33-
```
34-
.Transport(new
35-
{
36-
read = new Kendo.Mvc.ClientHandlerDescriptor() { HandlerName = "function(options) {customRead(options, '#=ID#')}" },
37-
})
38-
```
39-
40-
The `customRead` JavaScript handler will accept the default `options` argument as well as the ID of the **parent Grid**.
41-
42-
```JavaScript
43-
function customRead(options, id) {
44-
$.ajax({
45-
method: "POST",
46-
url: '@Url.Action("ActionName", "ControllerName")',
47-
dataType: "json",
48-
data: {
49-
ID: id,
50-
// more data here
51-
},
52-
success: function(data) {
53-
options.success(data);
54-
}
55-
});
56-
}
57-
```
31+
## Solution
5832

33+
1. If you are using the `ClientHandlerDescriptor` for reading the data, define the JavaScript handler.
34+
35+
```
36+
.Transport(new
37+
{
38+
read = new Kendo.Mvc.ClientHandlerDescriptor() { HandlerName = "function(options) {customRead(options, '#=ID#')}" },
39+
})
40+
```
41+
42+
1. The `customRead` JavaScript handler will accept the default `options` argument as well as the `ID` of the parent Grid.
43+
44+
```JavaScript
45+
function customRead(options, id) {
46+
$.ajax({
47+
method: "POST",
48+
url: '@Url.Action("ActionName", "ControllerName")',
49+
dataType: "json",
50+
data: {
51+
ID: id,
52+
// more data here
53+
},
54+
success: function(data) {
55+
options.success(data);
56+
}
57+
});
58+
}
59+
```

0 commit comments

Comments
 (0)