Skip to content

Commit 6f7fb8f

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent f53a40d commit 6f7fb8f

File tree

5 files changed

+1308
-1138
lines changed

5 files changed

+1308
-1138
lines changed

docs/api/javascript/data/datasource.md

Lines changed: 48 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,17 +2563,54 @@ It is recommended to get familiar with the SignalR [JavaScript API](http://www.a
25632563
var hub = connection.createHubProxy("productHub");
25642564
var hubStart = connection.start({ jsonp: true });
25652565

2566-
/* configuration for ASP.NET Core SignalR
2567-
* the initialization code below targets 1.0.0-rc1-final release of SignalR
2568-
* sample service can be found at https://github.com/telerik/kendo-ui-demos-service/tree/master/signalr-hubs
2569-
* var hubUrl = "url here";
2570-
* var hub = new signalR.HubConnectionBuilder()
2571-
* .withUrl(hubUrl, {
2572-
* transport: signalR.HttpTransportType.LongPolling
2573-
* })
2574-
* .build();
2575-
* var hubStart = hub.start();
2576-
*/
2566+
var dataSource = new kendo.data.DataSource({
2567+
type: "signalr",
2568+
schema: {
2569+
model: {
2570+
id: "ID",
2571+
fields: {
2572+
"ID": { editable: false, nullable: true },
2573+
"CreatedAt": { type: "date" },
2574+
"UnitPrice": { type: "number" }
2575+
}
2576+
}
2577+
},
2578+
transport: {
2579+
signalr: {
2580+
promise: hubStart,
2581+
hub: hub,
2582+
server: {
2583+
read: "read",
2584+
update: "update",
2585+
destroy: "destroy",
2586+
create: "create"
2587+
},
2588+
client: {
2589+
read: "read",
2590+
update: "update",
2591+
destroy: "destroy",
2592+
create: "create"
2593+
}
2594+
}
2595+
}
2596+
});
2597+
</script>
2598+
2599+
Configuration with [ASP.NET Core SignalR](https://docs.microsoft.com/en-us/aspnet/core/signalr/):
2600+
2601+
#### Example
2602+
2603+
<script src="https://unpkg.com/@aspnet/[email protected]/dist/browser/signalr.js"></script>
2604+
<script>
2605+
var hubUrl = "https://demos.telerik.com/aspnet-core/service/signalr/hubs/products";
2606+
2607+
var hub = new signalR.HubConnectionBuilder()
2608+
.withUrl(hubUrl, {
2609+
transport: signalR.HttpTransportType.LongPolling
2610+
})
2611+
.build();
2612+
2613+
var hubStart = hub.start()
25772614

25782615
var dataSource = new kendo.data.DataSource({
25792616
type: "signalr",

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

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ The margin of the gauge area.
8585
$("#gauge").kendoRadialGauge({
8686
pointer: [{
8787
value: 20
88-
gaugeArea:{
89-
margin:50
88+
gaugeArea:{
89+
margin:50
9090
}
9191
}]
9292
});
@@ -157,6 +157,34 @@ The size of the cap in percents. (from 0 to 1)
157157
The color of the pointer.
158158
Any valid CSS color string will work here, including hex and rgb.
159159

160+
### pointer.length `Number`
161+
162+
The pointer length (in percent) that is based on the distance to the scale.
163+
The default length of `1` indicates that the pointer exactly reaches the scale.
164+
Accepts values between `0.1` and `1.5`.
165+
166+
#### Example - specify pointers with different lengths
167+
<div id="gauge"></div>
168+
<script>
169+
$("#gauge").kendoRadialGauge({
170+
pointer: [{
171+
value: 10,
172+
color: '#ffd246',
173+
length: 0.5
174+
}, {
175+
value: 20,
176+
color: '#28b4c8',
177+
length: 0.75
178+
}, {
179+
value: 30,
180+
color: '#78d237',
181+
182+
// Default length
183+
// length: 1
184+
}]
185+
});
186+
</script>
187+
160188
### pointer.value `Number`
161189

162190
The value of the gauge.
@@ -278,7 +306,7 @@ The format of the labels.
278306
},
279307
scale: {
280308
min: 0,
281-
max: 100,
309+
max: 100,
282310
labels: {
283311
// set the format to currency
284312
format: "C"
@@ -359,7 +387,7 @@ Template variables:
359387
},
360388
scale: {
361389
min: 0,
362-
max: 100,
390+
max: 100,
363391
labels: {
364392
// set the format to currency
365393
template: "#= value #%"
@@ -447,7 +475,7 @@ The ranges of the scale.
447475
},
448476
scale: {
449477
min: 0,
450-
max: 100,
478+
max: 100,
451479
ranges: [{
452480
from: 10,
453481
to: 20,
@@ -568,7 +596,7 @@ Detaches event handlers and removes data entries in order to avoid memory leaks.
568596
setTimeout(function(){
569597
kendo.destroy($("#gauge"));
570598
$("#gauge").remove();
571-
},1000)
599+
},1000)
572600
</script>
573601

574602
### exportImage
@@ -711,7 +739,7 @@ Redraws the gauge.
711739
setTimeout(function(){
712740
var gauge = $("#gauge").data("kendoRadialGauge");
713741
gauge.redraw();
714-
},1000)
742+
},1000)
715743
</script>
716744

717745
### resize
@@ -840,5 +868,5 @@ Change the value of the gauge.
840868
});
841869
setTimeout(function(){
842870
$("#gauge").data("kendoRadialGauge").value(20);
843-
},1000)
871+
},1000)
844872
</script>

docs/controls/gauges/radialgauge/overview.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Overview
3-
page_title: Overview | Kendo UI Radial Gauge
3+
page_title: Overview | Kendo UI Radial Gauge
44
description: "Learn how to initialize and set the Kendo UI Radial Gauge."
55
slug: overview_kendoui_radialgaugewidget
66
position: 1
@@ -34,6 +34,8 @@ To initialize the Radial Gauge with its default configuration, use the following
3434

3535
## Configuration
3636

37+
For a detailed list with all configuration options of the Radial Gauge, refer to its [JavaScript API](/api/dataviz/radialgauge).
38+
3739
### Create Semi- and Quarter-Circle Gauges
3840

3941
The [`startAngle`](/api/dataviz/radialgauge#scale.startAngle) and [`endAngle`](/api/dataviz/radialgauge#scale.endAngle) configuration options enable you to create gauges that align with your design goals.
@@ -49,7 +51,34 @@ The following example demonstrates how to create a quarter-gauge, oriented to th
4951

5052
For a real-world example, refer to the [**Car Dashboard** demo](http://demos.telerik.com/kendo-ui/radial-gauge/car-dashboard).
5153

52-
For a detailed list with all configuration options of the Radial Gauge, refer to its [JavaScript API](/api/dataviz/radialgauge).
54+
### Multiple Pointers
55+
56+
The Radial Gauge enables you to highlight multiple values by rendering multiple pointers.
57+
58+
You can independently customize each pointer including its current value, color, and length.
59+
60+
###### Example
61+
62+
<div id="gauge"></div>
63+
<script>
64+
$("#gauge").kendoRadialGauge({
65+
pointer: [{
66+
value: 10,
67+
color: '#ffd246',
68+
length: 0.5
69+
}, {
70+
value: 20,
71+
color: '#28b4c8',
72+
length: 0.75
73+
}, {
74+
value: 30,
75+
color: '#78d237',
76+
77+
// Default length
78+
// length: 1
79+
}]
80+
});
81+
</script>
5382

5483
## See Also
5584

0 commit comments

Comments
 (0)