diff --git a/blazor/datagrid/custom-toolbar.md b/blazor/datagrid/custom-toolbar.md index 6c76758b65..7a4a40f0f2 100644 --- a/blazor/datagrid/custom-toolbar.md +++ b/blazor/datagrid/custom-toolbar.md @@ -1,18 +1,18 @@ --- layout: post title: Custom Toolbar Items in Blazor DataGrid Component | Syncfusion -description: Checkout and learn here all about Custom Toolbar Items in Syncfusion Blazor DataGrid component and much more details. +description: Learn how to create and use custom toolbar items in the Syncfusion Blazor DataGrid, including templates, icons with text, dropdowns, and export actions. platform: Blazor control: DataGrid documentation: ug --- # Custom toolbar in Blazor DataGrid -Custom toolbar in Syncfusion® Blazor DataGrid allows you to create a distinctive toolbar layout, style, and functionality that aligns with the specific needs of your application, providing a personalized experience within the Grid. +The custom toolbar in the Syncfusion® Blazor DataGrid enables a distinctive toolbar layout, style, and behavior tailored to application requirements, delivering a personalized Grid experience. -This can be achieved by utilizing the `Template` property, which offers extensive customization options for the Toolbar. You can define a custom Template for the Toolbar and handle the actions of the ToolbarItems in the **OnClick** event. +This is implemented by using the `Template` property, which provides extensive customization options for the toolbar. Define a custom template for the toolbar and handle toolbar item actions in the **OnClick** event. -The following example demonstrates, how to render the custom Toolbar using `Template`: +The following example demonstrates how to render a custom toolbar using `Template`: {% tabs %} {% highlight razor tabtitle="Index.razor" %} @@ -117,11 +117,11 @@ The following example demonstrates, how to render the custom Toolbar using `Temp ## Render image with text in custom Toolbar -Render an image with text in custom Toolbar in Syncfusion® Blazor DataGrid allows easily render an image along with text in the Toolbar of the Grid. This feature enhances the visual presentation of the Grid, providing additional context and improving the overall experience. +Rendering an image with text in the custom toolbar of the Syncfusion® Blazor DataGrid helps provide context and improves visual clarity for actions. -To render an image with text in Custom Toolbar, you can utilize the Template in [SfToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfToolbar.html) in your code. +To render an image with text in the custom toolbar, use the `Template` in [SfToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfToolbar.html). -The following example demonstrates how to render an image in the Toolbar of the Grid using `Template`: +The following example demonstrates how to render images and text in the Grid toolbar using `Template`: {% tabs %} {% highlight razor tabtitle="Index.razor" %} @@ -160,13 +160,13 @@ The following example demonstrates how to render an image in the Toolbar of the { Orders = OrderData.GetAllRecords(); } - public void AddButton() + public async Task AddButton() { - this.Grid.AddRecordAsync(); + await this.Grid.AddRecordAsync(); } - public void DeleteButton() + public async Task DeleteButton() { - this.Grid.DeleteRecordAsync(); + await this.Grid.DeleteRecordAsync(); } }