[PR #2397] Radzen Examples Split View #3242

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

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

State: closed
Merged: No


Hi guys

Something that's niggled me a little when using the example site. I do like to scroll through the code of an example while being able to refer to the rendered output. Not too easy when switching tabs. Also, you may scroll to some code, and then want to view how that affects the output. When switching back, you lose your position in the code window.

This PR adds a split view to the RadzenExample component. Not only can you review the code while viewing the output, but if you make a change and run your code, the output is updated and your code position remains.

I find it a much more pleasant experience.

What do you think?

BTW, if you do like the idea, there are some CSS issues that I did not know how to deal with. You will notice that the top of the CodeViewer component is trimmed. Not sure why placing it in a RadzenSplitterPane should do that.

Also, I assume that the CodeViewer or the Monaco component must have a fixed height, and cannot be dynamic?

Regards

Paul

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/2397 **State:** closed **Merged:** No --- Hi guys Something that's niggled me a little when using the example site. I do like to scroll through the code of an example while being able to refer to the rendered output. Not too easy when switching tabs. Also, you may scroll to some code, and then want to view how that affects the output. When switching back, you lose your position in the code window. This PR adds a split view to the `RadzenExample` component. Not only can you review the code while viewing the output, but if you make a change and run your code, the output is updated and your code position remains. I find it a much more pleasant experience. What do you think? BTW, if you do like the idea, there are some CSS issues that I did not know how to deal with. You will notice that the top of the `CodeViewer` component is trimmed. Not sure why placing it in a `RadzenSplitterPane` should do that. Also, I assume that the `CodeViewer` or the `Monaco` component must have a fixed height, and cannot be dynamic? Regards Paul
claunia added the pull-request label 2026-01-29 18:22:35 +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#3242