SignalR Updating

2 posts, 0 answers
  1. Rick
    Rick avatar
    46 posts
    Member since:
    Sep 2017

    Posted 27 May Link to this post

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

    Grid changes for example to update every connected client?

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4928 posts

    Posted 28 May Link to this post

    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
Back to Top