Skip to content

Commit eb78924

Browse files
committed
Sync with Kendo UI Professional
1 parent 64a8624 commit eb78924

File tree

11 files changed

+197
-146
lines changed

11 files changed

+197
-146
lines changed

docs/api/javascript/data/datasource.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,8 +1178,7 @@ The field from the server response which contains the data items. Can be set to
11781178

11791179
The field from the server response which contains server-side errors. Can be set to a function which is called to return the errors for response. If there are any errors, the [`error`](/api/javascript/data/datasource/events/error) event will be fired.
11801180

1181-
#### Example
1182-
1181+
```pseudo
11831182
<div id="grid"></div>
11841183
<script>
11851184
var dataSource = new kendo.data.DataSource({
@@ -1202,6 +1201,7 @@ The field from the server response which contains server-side errors. Can be set
12021201
dataSource: dataSource
12031202
});
12041203
</script>
1204+
```
12051205

12061206
> If this option is set and the server response contains that field, then the `error` event will be fired. The `errors` field of the event argument will contain the errors returned by the server.
12071207
@@ -3431,8 +3431,7 @@ A function that will handle create, update and delete operations in a single bat
34313431

34323432
The `transport.create`, `transport.update`, and `transport.delete` operations will not be executed in this case.
34333433

3434-
#### Example
3435-
3434+
```pseudo
34363435
<div id="grid"></div>
34373436
<script>
34383437
var dataSource = new kendo.data.DataSource({
@@ -3479,6 +3478,7 @@ The `transport.create`, `transport.update`, and `transport.delete` operations wi
34793478
editable: true
34803479
});
34813480
</script>
3481+
```
34823482

34833483
> This function will only be invoked when the DataSource is in its [batch mode](/api/javascript/data/datasource#configuration-batch).
34843484

docs/api/javascript/data/pivotdatasource.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ The configuration which is used when the data source discovers the schema inform
289289
* If the value of `transport.discover` is a string, the data source uses this string as the URL of the remote service.
290290
* If the value of `transport.discover` is omitted, the data source uses `transport.read` for schema discovery.
291291

292-
#### Example
293-
292+
```pseudo
294293
<script>
295294
var dataSource = new kendo.data.PivotDataSource({
296295
type: "xmla",
@@ -299,7 +298,8 @@ The configuration which is used when the data source discovers the schema inform
299298
catalog: "Adventure Works DW 2008R2",
300299
cube: "Adventure Works"
301300
},
302-
discover: "https://demos.telerik.com/service/v2/olap/msmdpump.dll",
301+
// The endpoint that returns the schema info for the cube
302+
discover: "endpoint-returning-info-about-the-cube",
303303
read: "https://demos.telerik.com/service/v2/olap/msmdpump.dll"
304304
},
305305
schema: {
@@ -311,30 +311,6 @@ The configuration which is used when the data source discovers the schema inform
311311
console.log(dimensions.length);
312312
});
313313
</script>
314-
315-
#### Set the discover remote service
316-
317-
```pseudo
318-
<script>
319-
var dataSource = new kendo.data.PivotDataSource({
320-
type: "xmla",
321-
transport: {
322-
connection: {
323-
catalog: "Adventure Works DW 2008R2",
324-
cube: "Adventure Works"
325-
},
326-
discover: "https://demos.telerik.com/service/v2/olap/msmdpump.dll",
327-
read: "https://demos.telerik.com/service/v2/olap/msmdpump.dll"
328-
},
329-
schema: {
330-
type: "xmla"
331-
}
332-
});
333-
dataSource.schemaDimensions().done(function(dimensions) {
334-
/* The result can be observed in the DevTools(F12) console of the browser. */
335-
console.log(dimensions.length);
336-
});
337-
</script>
338314
```
339315

340316
### transport.connection `Object`

docs/api/javascript/dataviz/navigator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Gets or sets the Navigator selected date range.
1818
1919
#### Example
2020

21-
<div id="stock-chart"></div>
22-
<script>
21+
<div id="stock-chart"></div>
22+
<script>
2323
$("#stock-chart").kendoStockChart({
2424
dataSource: {
2525
data: [
@@ -54,7 +54,7 @@ Gets or sets the Navigator selected date range.
5454
var selectedRange = navigator.select();
5555
console.log("Current range:", selectedRange.from, "to", selectedRange.to);
5656
}, 1000);
57-
</script>
57+
</script>
5858

5959
##### Example - Set selected range
6060
<input id="fromDate" />

docs/api/javascript/dataviz/ui/stock-chart.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11013,8 +11013,8 @@ The rotation angle of the markers.
1101311013

1101411014
#### Example
1101511015

11016-
<div id="stockChart"></div>
11017-
<script>
11016+
<div id="stockChart"></div>
11017+
<script>
1101811018
$(document).ready(function () {
1101911019
// Sample local stock data
1102011020
var stockData = [
@@ -11071,7 +11071,7 @@ The rotation angle of the markers.
1107111071
}
1107211072
});
1107311073
});
11074-
</script>
11074+
</script>
1107511075

1107611076
### navigator.series.markers.type `String`*(default: "circle")*
1107711077

@@ -11296,7 +11296,7 @@ The supported values are:
1129611296

1129711297
#### Example
1129811298

11299-
<div id="stockChart"></div>
11299+
<div id="stockChart"></div>
1130011300
<script>
1130111301
$(document).ready(function () {
1130211302
// Sample local stock data
@@ -11780,7 +11780,7 @@ Indicates that the series should be stacked in a group with the specified name.
1178011780
}
1178111781
});
1178211782
});
11783-
</script>
11783+
</script>
1178411784

1178511785
### navigator.series.tooltip `Object`
1178611786

@@ -14531,7 +14531,7 @@ The dash type of the border.
1453114531

1453214532
#### Example
1453314533

14534-
<div id="stockChart"></div>
14534+
<div id="stockChart"></div>
1453514535
<script>
1453614536
$(document).ready(function () {
1453714537
// Sample local stock data
@@ -14586,7 +14586,7 @@ The dash type of the border.
1458614586
}
1458714587
});
1458814588
});
14589-
</script>
14589+
</script>
1459014590

1459114591
#### *"solid"*
1459214592

@@ -14622,7 +14622,7 @@ The width of the border.
1462214622

1462314623
#### Example
1462414624

14625-
<div id="stockChart"></div>
14625+
<div id="stockChart"></div>
1462614626
<script>
1462714627
$(document).ready(function () {
1462814628
// Sample local stock data
@@ -14677,15 +14677,15 @@ The width of the border.
1467714677
}
1467814678
});
1467914679
});
14680-
</script>
14680+
</script>
1468114681

1468214682
### categoryAxis.title.color `String`
1468314683

1468414684
The text color of the title. Any valid CSS color string will work here, including hex and rgb.
1468514685

1468614686
#### Example
1468714687

14688-
<div id="stockChart"></div>
14688+
<div id="stockChart"></div>
1468914689
<script>
1469014690
$(document).ready(function () {
1469114691
// Sample local stock data
@@ -14740,7 +14740,7 @@ The text color of the title. Any valid CSS color string will work here, includin
1474014740
}
1474114741
});
1474214742
});
14743-
</script>
14743+
</script>
1474414744

1474514745
### categoryAxis.title.font `String`*(default: "16px Arial,Helvetica,sans-serif")*
1474614746

@@ -14799,7 +14799,7 @@ The font style of the title.
1479914799
}
1480014800
});
1480114801
});
14802-
</script>
14802+
</script>
1480314803

1480414804
### categoryAxis.title.margin `Number|Object`*(default: 5)*
1480514805

@@ -14858,7 +14858,7 @@ The margin of the title.
1485814858
}
1485914859
});
1486014860
});
14861-
</script>
14861+
</script>
1486214862

1486314863
### categoryAxis.title.position `String`*(default: "center")*
1486414864

@@ -14917,7 +14917,7 @@ The position of the title.
1491714917
}
1491814918
});
1491914919
});
14920-
</script>
14920+
</script>
1492114921

1492214922
#### *"top"*
1492314923

@@ -14996,7 +14996,7 @@ The rotation angle of the title.
1499614996
}
1499714997
});
1499814998
});
14999-
</script>
14999+
</script>
1500015000

1500115001
### categoryAxis.title.text `String`
1500215002

@@ -15054,7 +15054,7 @@ The text of the title.
1505415054
}
1505515055
});
1505615056
});
15057-
</script>
15057+
</script>
1505815058

1505915059
### categoryAxis.title.visible `Boolean`*(default: true)*
1506015060

@@ -15113,7 +15113,7 @@ The visibility of the title.
1511315113
}
1511415114
});
1511515115
});
15116-
</script>
15116+
</script>
1511715117

1511815118
### categoryAxis.type `String`*(default: "category")*
1511915119

@@ -15169,7 +15169,7 @@ The axis type.
1516915169
}
1517015170
});
1517115171
});
15172-
</script>
15172+
</script>
1517315173

1517415174
#### *"category"*
1517515175

@@ -15237,7 +15237,7 @@ either [categoryAxis.baseUnit](/api/javascript/dataviz/ui/stock-chart#configurat
1523715237
}
1523815238
});
1523915239
});
15240-
</script>
15240+
</script>
1524115241

1524215242
### categoryAxis.autoBaseUnitSteps.days `Array` *(default: [1, 2, 3])*
1524315243

@@ -15295,7 +15295,7 @@ The days unit steps.
1529515295
}
1529615296
});
1529715297
});
15298-
</script>
15298+
</script>
1529915299

1530015300
### categoryAxis.autoBaseUnitSteps.hours `Array` *(default: [1, 2, 3])*
1530115301

@@ -15353,7 +15353,7 @@ The hours unit steps.
1535315353
}
1535415354
});
1535515355
});
15356-
</script>
15356+
</script>
1535715357

1535815358
### categoryAxis.autoBaseUnitSteps.minutes `Array` *(default: [1, 2, 5, 15, 30])*
1535915359

@@ -15411,7 +15411,7 @@ The minutes unit steps.
1541115411
}
1541215412
});
1541315413
});
15414-
</script>
15414+
</script>
1541515415

1541615416
### categoryAxis.autoBaseUnitSteps.months `Array` *(default: [1, 2, 3, 6])*
1541715417

@@ -15469,7 +15469,7 @@ The months unit steps.
1546915469
}
1547015470
});
1547115471
});
15472-
</script>
15472+
</script>
1547315473

1547415474
### categoryAxis.autoBaseUnitSteps.weeks `Array` *(default: [1, 2])*
1547515475

@@ -15527,7 +15527,7 @@ The weeks unit steps.
1552715527
}
1552815528
});
1552915529
});
15530-
</script>
15530+
</script>
1553115531

1553215532
### categoryAxis.autoBaseUnitSteps.years `Array` *(default: [1, 2, 3, 5, 10, 25, 50])*
1553315533

docs/api/javascript/ui/dropdownbutton.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,16 +317,16 @@ Specifies the image of the item.
317317
$("#dropdownbutton").kendoDropDownButton({
318318
items: [
319319
{
320-
text: "Facebook",
321-
imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/icons/16/facebook.png"
320+
text: "Image",
321+
imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/icons/16/photo.png"
322322
},
323323
{
324-
text: "Twitter",
325-
imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/icons/16/twitter.png"
324+
text: "Video",
325+
imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/icons/16/video.png"
326326
},
327327
{
328-
text: "LinkedIn",
329-
imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/icons/16/linkedin.png"
328+
text: "Volume",
329+
imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/icons/16/speaker.png"
330330
}
331331
]
332332
});

0 commit comments

Comments
 (0)