Skip to content

Commit 6e346b7

Browse files
committed
Sync with Kendo UI Professional
1 parent b8f3549 commit 6e346b7

Some content is hidden

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

44 files changed

+1418
-898
lines changed

docs-aspnet/_config-mvc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ html-helpers/editors/slider/razor-page.md,
9494
html-helpers/editors/switch/razor-page.md,
9595
html-helpers/editors/upload/razor-page.md,
9696
html-helpers/editors/captcha/razor-page.md,
97+
html-helpers/editors/dropdownlist/troubleshooting.md,
9798
html-helpers/editors/imageeditor/razor-page.md,
9899
html-helpers/interactivity/loader/razor-page.md,
99100
html-helpers/layout/form/razor-page.md,

docs-aspnet/html-helpers/data-management/spreadsheet/import-and-export-data/export-to-excel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The Spreadsheet client-side API includes the [`saveAsExcel`](https://docs.teleri
3333
)
3434
```
3535

36-
## Known Issues
36+
## Outputting the Result
3737

38-
Currently, the export module does not handle sorting and filtering. This limitation will be addressed before the widget goes out of its Beta version.
38+
Through its default configuration the {{ site.product }} Spreadsheet exports the current sheet of data with sorting and filtering applied.
3939

4040
## See Also
4141

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: Troubleshooting
3+
page_title: Troubleshooting
4+
description: "Learn about the solutions of common issues that may occur while working with {{ site.product }} DropDownList."
5+
slug: troubleshoot_dropdownlist_aspnetcore
6+
position: 20
7+
---
8+
9+
# Troubleshooting
10+
11+
This article provides solutions to common issues that you might come across when leveraging the Telerik UI for {{ site.framework }} DropDownList.
12+
13+
## Items return as undefined when configuring the DropDownList for Remote Binding
14+
15+
By default, the {{ site.framework }} predominantly configures the JSON property naming convetion for server responses to `camelCase`. Where the DropDownList relies on `PascalCase` formatted response instead.
16+
17+
The following example demonstrates the differences between the format of responses.
18+
19+
```PascalCase
20+
[
21+
{
22+
"Value": "1",
23+
"Text": "Option1"
24+
},
25+
{
26+
"Value": "2",
27+
"Text": "Option2"
28+
}
29+
]
30+
```
31+
```camelCase
32+
[
33+
{
34+
"value": "1",
35+
"text": "Option1"
36+
},
37+
{
38+
"value": "2",
39+
"text": "Option2"
40+
}
41+
]
42+
```
43+
44+
### Solution
45+
46+
To handle Pascal-Cased formatted responses, alter the default JSON property naming convention by using the available [JSON Serialization Options](https://docs.telerik.com/aspnet-core/installation/json-serialization#json-serialization).
47+
48+
49+
```C#
50+
builder.Services
51+
.AddControllersWithViews()
52+
.AddJsonOptions(options => {
53+
options.JsonSerializerOptions.PropertyNamingPolicy = null;
54+
});
55+
```
56+
57+
## See Also
58+
59+
* [Basic Usage of the DropDownList HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/dropdownlist)
60+
* [Using the API of the DropDownList HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/dropdownlist/api)
61+
* [Server-Side API](/api/grid)

docs/api/javascript/data/datasource.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,24 +1159,24 @@ The field from the server response which contains server-side errors. Can be set
11591159
#### Example - specify the error field as a function
11601160

11611161
<script>
1162-
var dataSource = new kendo.data.DataSource({
1163-
transport: {
1164-
read: {
1165-
url: "https://run.mocky.io/v3/c9fb4321-bb6f-4f8c-a379-7499329586ed",
1166-
dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
1167-
}
1168-
},
1169-
schema: {
1170-
errors: function(response) {
1171-
return response.error;
1162+
var dataSource = new kendo.data.DataSource({
1163+
transport: {
1164+
read: {
1165+
url: "https://run.mocky.io/v3/b4361129-3100-44e3-8d99-16e65d7446a4",
1166+
dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
1167+
}
1168+
},
1169+
schema: {
1170+
errors: function(response) {
1171+
return response.error;
1172+
}
1173+
},
1174+
error: function(e) {
1175+
/* The result can be observed in the DevTools(F12) console of the browser. */
1176+
console.log(e.errors);
11721177
}
1173-
},
1174-
error: function(e) {
1175-
/* The result can be observed in the DevTools(F12) console of the browser. */
1176-
console.log(e.errors);
1177-
}
1178-
});
1179-
dataSource.fetch();
1178+
});
1179+
dataSource.fetch();
11801180
</script>
11811181

11821182
### schema.groups `Function|String`

docs/api/javascript/data/pivotdatasource.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -721,23 +721,24 @@ The last aggregated result of the function for already processed records.
721721
"Average": {
722722
field: "UnitPrice",
723723
aggregate: function(value, state, context) {
724-
if (!isNaN(value)) {
725-
state.count = (state.count || 0) + 1;
726-
return (state.accumulator || 0) + value;
727-
} else {
728-
return state.accumulator;
729-
}
724+
if (!isNaN(value)) {
725+
state.count = (state.count || 0) + 1;
726+
return (state.accumulator || 0) + value;
727+
} else {
728+
return state.accumulator;
729+
}
730730
},
731731
result: function(state) {
732-
result state.accumulator / state.count;
732+
return state.accumulator / state.count
733733
}
734+
}
734735
}
735736
}
736737
}
737738
});
738739

739740
dataSource.fetch(function() {
740-
/* The result can be observed in the DevTools(F12) console of the browser. */
741+
/* The result can be observed in the DevTools(F12) console of the browser. */
741742
console.log(dataSource.data(), dataSource.axes());
742743
});
743744
</script>

docs/api/javascript/dataviz/ui/barcode.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ If set to false the barcode will not display the value as a text below the barco
308308
value:"123456",
309309
text:{
310310
visible: false
311-
}
311+
},
312+
height:200
312313
});
313314
</script>
314315

0 commit comments

Comments
 (0)