I have the following server-side Blazor application with 2 pages with 2 grids from 2 different tables in a database.
Every row in the table has an edit button which executes a RadzenDialog and in every radzen page I have on method
OnInitialized the delegates for
Close for the dialog like this:
DialogService.OnOpen += MyOpen; DialogService.OnClose += MyClose;
for every page.
The problem is:
When I go to page 2, do nothing or do an edit, and then go to page 1, insead of the methods from page 1, are executed the methods from page 2 and I've noticed when I go for a third time on the second page the events are fired twice!
How can I fix this problem?