I followed the same steps as the first part of the get started and used the radzen layout, but the toggle button and menu items are not responding.
But the RadzenButton inside the all pages work correctly.
My project:
AutoRender
I followed the same steps as the first part of the get started and used the radzen layout, but the toggle button and menu items are not responding.
But the RadzenButton inside the all pages work correctly.
My project:
AutoRender
Your layout needs interactivity as well if you want to use the toggle button there. The easiest way is to set the render mode of the <Routes />
component in your App.razor page. The alternative is to set the rendermode attribute of the sidebar and toggle button separately.
I added the following lines based on the site documentation. Do I need to add them to the sidebar as well?
App.razor:
<RadzenTheme Theme="dark" @rendermode="@RenderMode.InteractiveAuto" />
Mainlayout:
<RadzenComponents @rendermode="@RenderMode.InteractiveAuto" />
When I add the renderMode to the <Routes />
, the following error occurs.
the following error occurs.
Root component type 'MyProject.Components.Routes' could not be found in the assembly 'MyProject'.