This is a migrated thread and some comments may be shown as answers.

SignalR Updating

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Veteran
Rick asked on 27 May 2019, 10:04 PM

Do you have any examples yet on updating all clients from any of your controls?

Grid changes for example to update every connected client?

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 May 2019, 05:58 AM
Hi Rick,

The grid exposes a number of events that are fired when the CRUD operations execute, and they let you access the new data, and get notified that something changed. You definitely need to use them to update the actual database (e.g., call a web service or an existing data access layer logic), and perhaps you can add there a call that will perform the desired reloading (maybe a JS interop call to a signalR hub that you already have running). I am not sure how one can reload a view in Blazor, apart from changing data which would re-render relevant parts  of the view, though, so once you have that C# logic running, you should be able to call it from the grid events. I must note here a related bug - see this page (I've already added your vote to raise its priority, because it is likely to affect you).

That said, if you create such an example, I'd encourage you to post it here and we'll gladly award your contribution with Telerik points. Of, if you prefer, open a pull request in the following repo: https://github.com/telerik/blazor-ui.


Regards,
Marin Bratanov
Progress Telerik UI for Blazor
Tags
General Discussions
Asked by
Rick
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or