Closed GevorDanielyan closed 2 years ago
Let's imagine that I open 2 different pages of the program in separate browsers or in separate tabs, on one page where I edit the data, it is necessary for the change to be visible on the other page at that moment, not after refreshing the page.
Thanks for contacting us.
Blazor doesn't offer any functionality to achieve this scenario out of the box. You will need to have code on one of the tabs you are using to display data to poll regularly for updates or use something like the broadcast channel API (see here) via JS interop to notify other tabs that additional data is available.
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.
See our Issue Management Policies for more information.
Hello everyone.
I have a general question related Blazor. I'm creating a program for dealers. In backend side I use gRPC, and for frontend side Blazor Server. For creating Blazor components I use Blazorise, which is great for me.
For example, I have a component, which is a Blazorise Data Grid. I created bool parameter and passed it to Data Grid as reference for Editable. This is because on another page where I use this component, I need it to be editable in one place and not editable in another. How can I do it so that on one page where I change the data, on the other non-editable page, the data appears at once?
Let's imagine that I open 2 different pages of the program in separate browsers or in separate tabs, on one page where I edit the data, it is necessary for the change to be visible on the other page at that moment, not after refreshing the page.
This is non editable grid in one page when I used data grid component.
And in another page this is editable
When I'm changing something in one page where my component's grid is editable , I need that immediately appears changes in another page where that same grid is non editable . How can I do this?
This is my component
which I use in different pages. So how can I solve my issue? Firstly I use it in page one which grid is non editable, just showing data, like this Page1
<Tariff Editable = "false"></Tariff>
and in second page where you can edit that data grid
Page2
<Tariff Editable = "true"></Tariff>
Thanks in advance