[PR #2046] Add cascading value support to dialog components #3049

Open
opened 2026-01-29 18:21:40 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/2046

State: closed
Merged: Yes


Added Dialog CascadingValue to DialogContainer to enable update dialog title from within the dialog content.

  • Updated DialogContainer.razor to wrap the Dialog in a CascadingValue, enabling access to cascading parameters.
  • Enhanced DialogPage.razor with explanatory text and a link to documentation regarding cascading values.
  • Introduced DialogWithCascadingValueCaller.razor to provide a button for opening a dialog that uses cascading values.
  • Created DialogWithCascadingValueImplementation.razor to implement dynamic dialog functionality with a counter that updates the title.

image

image

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/2046 **State:** closed **Merged:** Yes --- Added `Dialog` `CascadingValue` to `DialogContainer` to enable update dialog title from within the dialog content. - Updated `DialogContainer.razor` to wrap the `Dialog` in a `CascadingValue`, enabling access to cascading parameters. - Enhanced `DialogPage.razor` with explanatory text and a link to documentation regarding cascading values. - Introduced `DialogWithCascadingValueCaller.razor` to provide a button for opening a dialog that uses cascading values. - Created `DialogWithCascadingValueImplementation.razor` to implement dynamic dialog functionality with a counter that updates the title. ![image](https://github.com/user-attachments/assets/7ba5f08f-bc45-497a-b9cf-140f2fcb7293) ![image](https://github.com/user-attachments/assets/981ed72a-75e2-4335-bb0b-98235d21d3aa)
claunia added the pull-request label 2026-01-29 18:21:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3049