The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I've made no changes to the Imports.razor file as these are already configured per the project generator. Yet I get no visible sidebar in the application on launch. No errors in the console or network traffic.
The project type is .Net 8.0 - Syncfusion Blazor Web App (.Net 8.0 LTS), Fluent Theme, Individual Accounts, Auto (Server + WASM), Per page/component interactivity.
I get the sidebar back, yet its still not behaving as expected.
AMAmosDecember 22, 2023 09:43 PM UTC
I'm getting this same issue.
SASureshRajan Alagarsamy Syncfusion Team December 26, 2023 04:24 PM UTC
Hi Philip,
We have reviewed your query regarding the Sidebar
component not working properly in the Blazor Web App when declared
inside the MainLayout.razor page component. It is important to note that
this is already know issue at out end. The reported issue occurs due to the Sidebar
component's target not being properly assigned. Our resolution involved
defining the render mode type in the Routes.razor component. This
adjustment ensures the Sidebar component renders correctly while
retaining all functionalities when we declared inside MainLayout.razor
component.
However, this solution impacts authentication-type
applications, leading to a persistent browser reloading issue. We have
escalated this concern on Dot Net GitHub. You can find more details through the
link below.
MBMahfoud BouabdallahFebruary 18, 2024 06:17 AM UTC
It's the same issue for me as well
JAJafar Ali Shahulhameed Syncfusion Team February 19, 2024 01:02 PM UTC
Hi Mahfoud,
We would like to inform you that as mentioned in the
previous responses it is a known issue. We kindly suggest you to keep track of
this thread for the further updates.
Feel free to get back to us if you need further assistance.
Can you explain exactly what to do here? My POC app doesn't need authentication (yet), so it would be nice to work with sidebar.
Our resolution involved defining the render mode type in theRoutes.razorcomponent. This adjustment ensures theSidebarcomponent renders correctly while retaining all functionalities when we declared insideMainLayout.razorcomponent.
JAJafar Ali Shahulhameed Syncfusion Team February 20, 2024 01:43 PM UTC
Hi James,
We understand that you are trying to utilize Syncfusion Sidebar
component and not using an authentication with it and we would like to inform
you that you can render the Sidebar component in the MainLayout.razor file and
define render mode type in the routes.razor for rendering the Sidebar component
without any issues.
Kindly get back to us if you need further assistance
Jafar, can you please provide an example to clarify? Your response simply restated what SureshRajan stated on 12/26.
MBMahfoud BouabdallahFebruary 21, 2024 09:44 AM UTC
I encourage all participants to visit the GitHub link shared bySureshRajan Alagarsamyand leave a comment. This will hopefully expedite Microsoft’s response to the issue that has been open since December 2023 and has yet to be addressed.
JAJafar Ali Shahulhameed Syncfusion Team February 21, 2024 04:32 PM UTC
Hi James,
We have prepared a sample and rendered the sidebar
component in a MainLayout.razor page, also defining render mode type in the
Routes.razor file. You can see that component has rendered without any issues.
But in the case of authentication sample issue occurs while click the
authentication page in the rendered sidebar.
As this is a known issues from dotnet, we have already
raised a query regarding it. Kindly check the github link provided in the
previous responses.
Kindly check out the shared sample and get back to us if
you need further assistance.
I noticed that Mr. Stephen Halter (halter73) has contributed a fix.
To quote him: I submitted a pull request to the repository project to address the issue of continuous reloading: Sureshrajan-18/Blazor_.NET8-AuthorizeRouteView#1.
What do you think?
JAJafar Ali Shahulhameed Syncfusion Team April 17, 2024 06:56 AM UTC
Hi Mahfoud,
Yes, we have noticed the changed made on the shared
repository. On making the suggested changes in our local sample, exception and
automatic refreshment issues while clicking the authorization page got
resolved. Refer the below github repository for the code changes,
Thank you for the code snippet and the attached sample.
Perhaps I wasn’t clear in my previous question. The previous behavior of the sidebar was a collapsible icon menu (the icons still appear when collapsed). If possible, I would like to maintain this behavior.
Additionally, the new OpenClose button does not function on authentication pages.
JAJafar Ali Shahulhameed Syncfusion Team May 15, 2024 08:41 AM UTC
Hi Mahfoud,
We would like to inform you that we are internally working
on the Sidebar rendering with SSR rendering in .Net 8 applications. This is
planned for our Volume 2 release and you can track the status through the below
feedback link