RadzenSideBar forced to Expand on load #1809

Closed
opened 2026-01-29 17:58:50 +00:00 by claunia · 2 comments
Owner

Originally created by @Anspitzen on GitHub (Jul 15, 2025).

Describe the bug
Independently of the set/Bound Expanded Property the RadzenSideBar will render on Expanded on first Render

To Reproduce
Steps to reproduce the behavior:

  1. Go to Official Demo
  2. Edit Source bool value sidebar1Expanded to false;
  3. Run
  4. See error

Expected behavior
The pre-set value is adhered to and not overwritten on load in the sidebar internally

Desktop (please complete the following information):

  • Browser chrome
  • Version Latest of today

Additional context
If you set the Visible for the content of the sidebar to the same variable you will see that it is still the loaded value (false) but the sidebar is overwriting the value internally on first appearance. Afterwards it is correctly behaving with the variable

Originally created by @Anspitzen on GitHub (Jul 15, 2025). **Describe the bug** Independently of the set/Bound Expanded Property the RadzenSideBar will render on Expanded on first Render **To Reproduce** Steps to reproduce the behavior: 1. Go to [Official Demo](https://blazor.radzen.com/layout?theme=standard#sidebar-header-footer) 2. Edit Source bool value sidebar1Expanded to false; 3. Run 4. See error **Expected behavior** The pre-set value is adhered to and not overwritten on load in the sidebar internally **Desktop (please complete the following information):** - Browser chrome - Version Latest of today **Additional context** If you set the Visible for the content of the sidebar to the same variable you will see that it is still the loaded value (false) but the sidebar is overwriting the value internally on first appearance. Afterwards it is correctly behaving with the variable
Author
Owner

@akorchev commented on GitHub (Jul 15, 2025):

Duplicate of #716

@akorchev commented on GitHub (Jul 15, 2025): Duplicate of #716
Author
Owner

@Anspitzen commented on GitHub (Jul 17, 2025):

Thanks, didn't see that one.
To prevent same question again, maybe put in documentation for the Expanded Sidebar, mentioning potential Side-effects from the Responsive Parameter (which is default true and not visible to check without knowing it exists and what it does)

@Anspitzen commented on GitHub (Jul 17, 2025): Thanks, didn't see that one. To prevent same question again, maybe put in documentation for the Expanded Sidebar, mentioning potential Side-effects from the Responsive Parameter (which is default true and not visible to check without knowing it exists and what it does)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1809