Welcome to Syncfusion Rich Text Editor
+Welcome to Blazor Rich Text Editor
Welcome to Syncfusion Rich Text Editor
"; + private string Content = "Welcome to Blazor Rich Text Editor
"; } {% endhighlight %} diff --git a/blazor/common/performance-and-scalability/blazor-rendering-performance.md b/blazor/common/performance-and-scalability/blazor-rendering-performance.md index 20f4fc0025..88b4fc1b70 100644 --- a/blazor/common/performance-and-scalability/blazor-rendering-performance.md +++ b/blazor/common/performance-and-scalability/blazor-rendering-performance.md @@ -1,19 +1,19 @@ --- layout: post title: Blazor Rendering Performance - Syncfusion -description: Learn how Blazor's render tree, diffing, and update batching work, and apply techniques to optimize rendering with Syncfusion components effectively. +description: Learn how Blazor's render tree, diffing, and update batching work, and apply techniques to optimize rendering with Blazor components effectively. platform: Blazor control: Common documentation: ug --- -# Syncfusion® Blazor Rendering and Performance Optimization +# Blazor Rendering and Performance Optimization -This guide explains how rendering works in Blazor and provides practical techniques to optimize rendering performance when using [Syncfusion® Blazor components](https://www.syncfusion.com/blazor-components). It focuses on reducing unnecessary re-renders, minimizing diffing overhead, and improving UI update efficiency. +This guide explains how rendering works in Blazor and provides practical techniques to optimize rendering performance when using [Blazor components](https://www.syncfusion.com/blazor-components). It focuses on reducing unnecessary re-renders, minimizing diffing overhead, and improving UI update efficiency. -## Syncfusion® Blazor DataGrid example with stable data binding +## Blazor DataGrid example with stable data binding -The following example demonstrates a [Syncfusion® Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) with a stable data source. The data collection is created once and reused, which helps prevent unnecessary internal rendering when the component updates for unrelated reasons. +The following example demonstrates a [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) with a stable data source. The data collection is created once and reused, which helps prevent unnecessary internal rendering when the component updates for unrelated reasons. {% tabs %} {% highlight razor tabtitle="Index.razor" %} @@ -242,9 +242,9 @@ protected override void OnInitialized() This keeps the render path simple and avoids repeated computation during every UI update. -## Syncfusion® Blazor Chart example with render-efficient updates +## Blazor Chart example with render-efficient updates -[Syncfusion® Blazor Charts](https://www.syncfusion.com/blazor-components/blazor-charts) are frequently used in dashboards where filters or live data can trigger repeated updates. Keeping the chart data stable and updating it only when required reduces redraw cost and avoids unnecessary layout recalculations. +[Blazor Charts](https://www.syncfusion.com/blazor-components/blazor-charts) are frequently used in dashboards where filters or live data can trigger repeated updates. Keeping the chart data stable and updating it only when required reduces redraw cost and avoids unnecessary layout recalculations. {% tabs %} {% highlight razor tabtitle="Charts.razor" %} @@ -345,7 +345,7 @@ This difference is not about code style and directly impacts rendering efficienc * [Razor component rendering](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/rendering?view=aspnetcore-10.0) * [Razor component lifecycle](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/lifecycle?view=aspnetcore-10.0) * [Blazor rendering performance best practices](https://learn.microsoft.com/en-us/aspnet/core/blazor/performance/rendering?view=aspnetcore-10.0) -* [Getting started with Syncfusion Blazor DataGrid](https://blazor.syncfusion.com/documentation/datagrid/getting-started) -* [Getting started with Syncfusion Blazor Chart](https://blazor.syncfusion.com/documentation/chart/getting-started) -* [Getting started with Syncfusion Blazor DropDownList](https://blazor.syncfusion.com/documentation/dropdown-list/getting-started) +* [Getting started with Blazor DataGrid](https://blazor.syncfusion.com/documentation/datagrid/getting-started) +* [Getting started with Blazor Chart](https://blazor.syncfusion.com/documentation/chart/getting-started) +* [Getting started with Blazor DropDownList](https://blazor.syncfusion.com/documentation/dropdown-list/getting-started) diff --git a/blazor/common/performance-and-scalability/memory-management.md b/blazor/common/performance-and-scalability/memory-management.md index 1647679bda..81f0e7dd43 100644 --- a/blazor/common/performance-and-scalability/memory-management.md +++ b/blazor/common/performance-and-scalability/memory-management.md @@ -1,25 +1,25 @@ --- layout: post -title: Memory management in Syncfusion Blazor Components -description: Provides best practices for managing memory efficiently in Syncfusion Blazor components to improve performance, reduce leaks, and ensure optimal resource usage. +title: Memory management in Blazor Components | Syncfusion +description: Provides best practices for managing memory efficiently in Blazor components to improve performance, reduce leaks, and ensure optimal resource usage. platform: Blazor control: Common documentation: ug --- -# Memory Management with Syncfusion® Blazor Components +# Memory Management with Blazor Components -This guide explains best practices for [managing memory](https://learn.microsoft.com/en-us/aspnet/core/performance/memory) in Blazor applications using [Syncfusion® Blazor components](https://www.syncfusion.com/blazor-components). It covers efficient component lifecycle management, proper resource cleanup, and techniques such as `IDisposable` to prevent memory leaks and optimize application performance. +This guide explains best practices for [managing memory](https://learn.microsoft.com/en-us/aspnet/core/performance/memory) in Blazor applications using [Blazor components](https://www.syncfusion.com/blazor-components). It covers efficient component lifecycle management, proper resource cleanup, and techniques such as `IDisposable` to prevent memory leaks and optimize application performance. -## Preventing memory leaks with Syncfusion® Blazor components +## Preventing memory leaks with Blazor components Blazor components are optimized for efficient rendering and automatically manage their internal resources. However, application level objects such as data collections, service subscriptions, timers, and JavaScript interop references should be cleared explicitly. In Blazor WebAssembly, releasing these references allows the browser runtime to reclaim memory. In Blazor Server, proper cleanup prevents memory retention across active user circuits, which is essential for maintaining scalability. -If you haven't created a Blazor application yet, follow the [Syncfusion® Blazor getting started guide](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio) to create a project. +If you haven't created a Blazor application yet, follow the [Blazor getting started guide](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio) to create a project. -### Disposing data bound Syncfusion® Blazor components +### Disposing data bound Blazor components Data bound components such as [DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) and [ListView](https://www.syncfusion.com/blazor-components/blazor-listview) can hold large data collections in memory. These references should be cleared when the component is removed from the render tree. @@ -192,7 +192,7 @@ Rendering large datasets increases memory allocation and DOM size. [Blazor compo In [DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid), to configure row virtualization, set [EnableVirtualization](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_EnableVirtualization) to **true** and define a fixed content height using the [Height](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Height) property. The number of rendered records is implicitly determined by the content height. -The following example demonstrates how to use built‑in virtualization in the Syncfusion DataGrid component to efficiently render large data collections. +The following example demonstrates how to use built‑in virtualization in the DataGrid component to efficiently render large data collections. {% tabs %} {% highlight razor tabtitle="Home.razor" %} @@ -319,7 +319,7 @@ When the collection changes, Blazor can correctly match existing components inst In Blazor Server, each user maintains their own `ServiceProvider` instance per circuit. A scoped service is created once per user circuit, ensuring user specific state is isolated. `Singleton` services are shared across all users and may lead to unintended data sharing or memory issues. -This behavior is important when working with [Syncfusion® Blazor components](https://www.syncfusion.com/blazor-components) that depend on application state, data services, or user specific data. Choosing the correct service lifetime helps prevent memory retention issues and ensures proper component behavior. +This behavior is important when working with [Blazor components](https://www.syncfusion.com/blazor-components) that depend on application state, data services, or user specific data. Choosing the correct service lifetime helps prevent memory retention issues and ensures proper component behavior. {% tabs %} {% highlight csharp tabtitle="Program.cs" %} @@ -335,7 +335,8 @@ This guidance applies to the Blazor Server hosting model and to Blazor Web App p ## See also -* [Blazor Component Lifecycle](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/lifecycle?view=aspnetcore-10.0) +* [Blazor DataGrid Virtualization](https://blazor.syncfusion.com/documentation/datagrid/virtual-scrolling) +* [Blazor Performance Guidelines](https://blazor.syncfusion.com/documentation/common/best-practices) +* [Blazor Component Lifecycle documentation](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/lifecycle?view=aspnetcore-10.0) * [Blazor Dependency Injection](https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/dependency-injection?view=aspnetcore-10.0) -* [Syncfusion® DataGrid Virtualization](https://blazor.syncfusion.com/documentation/datagrid/virtual-scrolling) -* [Syncfusion® Blazor Performance Guidelines](https://blazor.syncfusion.com/documentation/common/best-practices) + diff --git a/blazor/common/security/authentication-and-authorization.md b/blazor/common/security/authentication-and-authorization.md index ea460c8c71..0717a07126 100644 --- a/blazor/common/security/authentication-and-authorization.md +++ b/blazor/common/security/authentication-and-authorization.md @@ -1,14 +1,14 @@ --- -title: Authentication and Authorization in Syncfusion Blazor Components -description: Learn how to secure Syncfusion Blazor components with authentication and authorization in Blazor Server and WebAssembly applications. +title: Authentication and Authorization in Blazor Components |Syncfusion +description: Learn how to secure Blazor components with authentication and authorization in Blazor Server and WebAssembly applications. platform: blazor component: common documentation: ug --- -# Authentication and Authorization for Syncfusion® Blazor Components +# Authentication and Authorization for Blazor Components -This guide explains how to secure [Syncfusion® Blazor components](https://www.syncfusion.com/blazor-components) using [authentication and authorization](https://learn.microsoft.com/en-us/aspnet/core/blazor/security). This enables you to control what users can see and interact with through UI-level security, while also protecting backend data access through data-level security. +This guide explains how to secure [Blazor components](https://www.syncfusion.com/blazor-components) using [authentication and authorization](https://learn.microsoft.com/en-us/aspnet/core/blazor/security). This enables you to control what users can see and interact with through UI-level security, while also protecting backend data access through data-level security. ## Prerequisites @@ -16,7 +16,7 @@ This guide explains how to secure [Syncfusion® Blazor components](https://www.s * [Visual Studio](https://visualstudio.microsoft.com/downloads/) 2022 or later or [Visual Studio Code](https://code.visualstudio.com/) with [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension. * [AuthorizeView](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.authorization.authorizeview), [AuthenticationStateProvider](https://learn.microsoft.com/en-us/aspnet/core/blazor/security/authentication-state), and token-based data requests require the Blazor authentication pipeline to be configured. -If you already have a Blazor project, proceed to the package installation section. Otherwise, create one using Syncfusion’s Blazor getting started guides. +If you already have a Blazor project, proceed to the package installation section. Otherwise, create one using below Blazor getting started guides. * [Getting Started with Blazor WebAssembly App](https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly-app) * [Getting Started with Blazor Server App](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio) @@ -39,7 +39,7 @@ Install required packages in your project using the NuGet Package Manager in Vis ## Add required namespaces -Open the `~/_Imports.razor` file and add the required Syncfusion namespaces. +Open the `~/_Imports.razor` file and add the required Blazor namespaces. {% tabs %} {% highlight c# tabtitle="~/_Imports.razor" %} @@ -56,20 +56,20 @@ Open the `~/_Imports.razor` file and add the required Syncfusion namespaces. ## Add stylesheet and script resources -Add the Syncfusion theme CSS and required scripts to the `/App.razor` file. +Add the Blazor theme CSS and required scripts to the `/App.razor` file. {% tabs %} {% highlight html tabtitle="App.razor" %} ... - + ... ... - + ... @@ -102,7 +102,7 @@ Inject the authentication provider in components that need to access the authent {% endhighlight %} {% endtabs %} -**Step 3. Register authentication and Syncfusion® services in `Program.cs`** +**Step 3. Register authentication and Blazor services in `Program.cs`** {% tabs %} {% highlight c# tabtitle="Program.cs" %} @@ -116,7 +116,7 @@ builder.Services.AddAuthentication(IdentityConstants.ApplicationScheme) builder.Services.AddAuthorization(); // This class is generated by the Blazor Server Identity template. builder.Services.AddScoped