-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
453 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
docs-aspnet/html-helpers/layout/window/how-to/update-dialog-ajax-forms.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
--- | ||
title: Bind Chart to SignalR | ||
description: Learn how to bind a Telerik UI for {{ site.framework }} Chart to SignalR. | ||
description: Learn how to bind a Telerik UI for {{ site.framework }} Chart to a SignalR DataSource. | ||
type: how-to | ||
page_title: Binding a Chart to SignalR | ||
previous_url: html-helpers/charts/how-to/binding-to-singalr | ||
previous_url: /helpers/charts/how-to/binding-to-singalr, /html-helpers/charts/how-to/binding-to-singalr | ||
slug: chart-bind-to-signalr | ||
tags: chart, databound, signalr | ||
res_type: kb | ||
--- | ||
|
||
# Description | ||
How can I bind a Telerik UI for {{ site.framework }} Chart to SignalR? | ||
|
||
# Example | ||
## Environment | ||
<table> | ||
<tr> | ||
<td>Product</td> | ||
<td>{{ site.product }} Chart</td> | ||
</tr> | ||
<tr> | ||
<td>Product Version</td> | ||
<td>Created with version 2024.4.1112</td> | ||
</tr> | ||
</table> | ||
|
||
## Description | ||
How can I bind the Chart to a [SignalR](https://dotnet.microsoft.com/en-us/apps/aspnet/signalr) DataSource? | ||
|
||
## Solution | ||
```HtmlHelper | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery.signalR.min.js"></script> | ||
@(Html.Kendo().Notification() | ||
.Name("notification") | ||
.Width("100%") | ||
|
@@ -71,14 +85,12 @@ How can I bind a Telerik UI for {{ site.framework }} Chart to SignalR? | |
``` | ||
|
||
```JavaScript | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery.signalR.min.js"></script> | ||
|
||
<script> | ||
var hubUrl = "https://demos.telerik.com/kendo-ui/service/signalr/hubs"; | ||
var connection = $.hubConnection(hubUrl, { useDefaultPath: false }); | ||
var hub = connection.createHubProxy("productHub"); | ||
var hubStart = connection.start({ jsonp: true }); | ||
</script> | ||
<script> | ||
var hubUrl = "https://demos.telerik.com/kendo-ui/service/signalr/hubs"; | ||
var connection = $.hubConnection(hubUrl, { useDefaultPath: false }); | ||
var hub = connection.createHubProxy("productHub"); | ||
var hubStart = connection.start({ jsonp: true }); | ||
</script> | ||
``` | ||
```Styles | ||
<style> | ||
|
@@ -88,7 +100,7 @@ How can I bind a Telerik UI for {{ site.framework }} Chart to SignalR? | |
</style> | ||
``` | ||
|
||
For the complete implementation refer to the GitHub repo with the [sample project of a SignalR-bound Chart](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Areas/ChartSignalR). | ||
For the complete implementation, refer to the [ASP.NET MVC application](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Areas/ChartSignalR) in the [UI for ASP.NET MVC Examples repository](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master). {% if site.core %}You can use this as a starting point to configure the same behavior in an ASP.NET Core project.{% endif %} | ||
|
||
## More {{ site.framework }} Chart Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.