From b9304207b735117b944495d96f7dd2b1b5acb0dd Mon Sep 17 00:00:00 2001 From: kathiravan4982 Date: Thu, 30 Jul 2026 23:50:31 +0530 Subject: [PATCH 1/2] 856820: Fixed the Sidebar .NET 8 documentation sample issue in the Blazor Sidebar UG. --- .../how-to/sidebar-in-the-dotnet8-application.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md b/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md index b577b96553..382a582435 100644 --- a/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md +++ b/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md @@ -13,7 +13,10 @@ documentation: ug Integrate the Blazor Sidebar component into the `MainLayout.razor` page of the .NET 8 application. Next, include the `@rendermode InteractiveServer` directive in the `Routes.razor` page of the application. When you specify InteractiveServer as the render mode for the Routes component, you are enabling interactive server-side rendering (SSR) for your entire Blazor application. -```cshtml +N> Add the following code in the `MainLayout.razor` file. The `@Body` property is available only in layout components. If the code is copied into a page such as `Index.razor` or `Home.razor`, the application will throw the compiler error: `CS0103: The name 'Body' does not exist in the current context`. + +{% tabs %} +{% highlight razor tabtitle="MainLayout.razor" %} @using Syncfusion.Blazor.Navigations @using Syncfusion.Blazor.Inputs @@ -167,14 +170,15 @@ Integrate the Blazor Sidebar component into the `MainLayout.razor` page of the . -``` - -```cshtml +{% endhighlight %} +{% endtabs %} -<--Add it in Router.razor---> +{% tabs %} +{% highlight razor tabtitle="Routes.razor" %} @rendermode InteractiveServer -``` \ No newline at end of file +{% endhighlight %} +{% endtabs %} \ No newline at end of file From b722ce063318ed93d7f6981abb9422e685623409 Mon Sep 17 00:00:00 2001 From: kathiravan4982 Date: Tue, 4 Aug 2026 14:32:43 +0530 Subject: [PATCH 2/2] 856820: Addressed the review comments. --- blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md b/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md index 382a582435..7fb4e69752 100644 --- a/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md +++ b/blazor/sidebar/how-to/sidebar-in-the-dotnet8-application.md @@ -13,7 +13,7 @@ documentation: ug Integrate the Blazor Sidebar component into the `MainLayout.razor` page of the .NET 8 application. Next, include the `@rendermode InteractiveServer` directive in the `Routes.razor` page of the application. When you specify InteractiveServer as the render mode for the Routes component, you are enabling interactive server-side rendering (SSR) for your entire Blazor application. -N> Add the following code in the `MainLayout.razor` file. The `@Body` property is available only in layout components. If the code is copied into a page such as `Index.razor` or `Home.razor`, the application will throw the compiler error: `CS0103: The name 'Body' does not exist in the current context`. +N> Add the following code in the `MainLayout.razor` file. The `@Body` property is available only in layout components. {% tabs %} {% highlight razor tabtitle="MainLayout.razor" %}