radzen-blazor icon indicating copy to clipboard operation
radzen-blazor copied to clipboard

RadzenPanelMenu not synced when navigating via RadzenLink or RadzenButton

Open marekott opened this issue 1 year ago • 3 comments

Describe the bug When navigating to page that is present on RadzenPanelMenu using RadzenLink, navigation menu is not synced with target page. The same behavior can be observed using RadzenButton with NavigationManager (however in that case refreshing the page expands navigation menu to appropriate item).

To Reproduce Steps to reproduce the behavior:

  1. Using https://blazor.radzen.com/link click on "Go to Buttons page"
  2. You are being navigated to https://blazor.radzen.com/buttons hovewer this transition is not reflected by navigation menu. It remains collapsed even that this page has its navigation item.

Expected behavior When navigating to https://blazor.radzen.com/buttons related navigation item should be expanded (see screenshot below).

Screenshots image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: Radzen.Blazor - 4.6.2, Chrome - 113.0.5672.127

marekott avatar May 30 '23 13:05 marekott

Hi @marekott,

Indeed RadzenPanelMenu doesn't have such a feature at the moment. There is no code that will try to match the current url to an item and then expand that item.

akorchev avatar May 30 '23 13:05 akorchev

Hi @akorchev, thanks for the quick answer. Is there a chance for such feature? In my app we are navigating via buttons from cards representing microservices to pages with info specific for such microservice. There are more than one page with this specific info nested in RadzenPanelMenu and then in RadzenPanelMenuItem. Since nav menu is not synced user is a little bit lost and doesn't now about other pages he can visit.

marekott avatar May 31 '23 05:05 marekott

We don't plan to make such a feature soon. You can however use the available API to expand the items when needed.

akorchev avatar May 31 '23 08:05 akorchev