Allow Dialog/Modal Re-rendering of fragments #35

Closed
opened 2026-01-29 17:30:27 +00:00 by claunia · 1 comment
Owner

Originally created by @vflame on GitHub (Feb 17, 2021).

Use case: Using dynamic inline renderfragments with dialog/modal and desire the ability to trigger re-rendering of the dialog/modal either through direct invocation/event:

<RadzenDialog @ref="_dialogComponent" />

@ code {
    RadzenDialogComponent _dialogComponent;

    public void ActionTriggeringAChangeToFragment()
    {
        _dialogComponent.Refresh();
    }
}

where Refresh() would pretty much be a call to InvokeAsync(StateHasChanged);
or accept a delegate/callback argument into the DialogService.OpenAsync that allows the caller to request a re-rendering..such as Service.Refresh += () => StateHasChanged(); for the dialog.

Not super well versed in blazor but can do a PR if this is desirable

Originally created by @vflame on GitHub (Feb 17, 2021). Use case: Using dynamic inline renderfragments with dialog/modal and desire the ability to trigger re-rendering of the dialog/modal either through direct invocation/event: ```c# <RadzenDialog @ref="_dialogComponent" /> @ code { RadzenDialogComponent _dialogComponent; public void ActionTriggeringAChangeToFragment() { _dialogComponent.Refresh(); } } ``` where Refresh() would pretty much be a call to `InvokeAsync(StateHasChanged);` or accept a delegate/callback argument into the `DialogService.OpenAsync` that allows the caller to request a re-rendering..such as `Service.Refresh += () => StateHasChanged();` for the dialog. Not super well versed in blazor but can do a PR if this is desirable
Author
Owner

@vflame commented on GitHub (Feb 17, 2021):

PR: https://github.com/radzenhq/radzen-blazor/pull/52

@vflame commented on GitHub (Feb 17, 2021): PR: https://github.com/radzenhq/radzen-blazor/pull/52
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#35