Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blazor/datagrid/adding-header-and-footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ The following example demonstrates how to repeat the column headers on every pag
{
PdfExportProperties ExportProperties = new PdfExportProperties();
ExportProperties.IsRepeatHeader = true; // Repeats the Grid's header on every page in the PDF document.
await this.DefaultGrid.PdfExport(ExportProperties);
await this.DefaultGrid.ExportToPdfAsync(ExportProperties);
}
}
protected override void OnInitialized()
Expand Down Expand Up @@ -760,4 +760,4 @@ public class OrderData
{% endhighlight %}
{% endtabs %}

{% previewsample "https://blazorplayground.syncfusion.com/embed/VDLyXTCdVQgRVfzE?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/hDVINuLIyMVDkBoc?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
2 changes: 1 addition & 1 deletion blazor/datagrid/how-to/enable-or-disable-grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following example demonstrates how to enable or disable the Grid and its act
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.Buttons

<SfButton CssClass="e-flat" @onclick="ToggleGrid">
<SfButton CssClass="e-flat" onclick="ToggleGrid">
@(isGridDisabled? "Enable Grid" : "Disable Grid")
</SfButton>

Expand Down
4 changes: 2 additions & 2 deletions blazor/datagrid/how-to/resize-grid-in-various-dimension.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
layout: post
title: Resize the Blazor DataGrid in various dimension | Syncfusion
description: Learn here all about resize the Grid in various dimension in Syncfusion Blazor DataGrid.
description: Learn here all about resize the Grid in various dimension in Syncfusion Blazor DataGrid components and more details.
platform: Blazor
control: DataGrid
documentation: ug
---

# Resize the Blazor DataGrid in various dimension
# Resize the Blazor DataGrid in various dimension

The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid offers a friendly way to resize the Grid, allowing you to adjust its width and height for improved data visualization.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Height="600" @ref="Grid">
<SfComboBox TValue="string" TItem="Customer" DataSource="@Customers" @bind-Value="order.CustomerID"
Placeholder="Select Customer" FloatLabelType="FloatLabelType.Always" AllowFiltering="true">
<ComboBoxFieldSettings Value="CustomerID" Text="CustomerName"></ComboBoxFieldSettings>
<ComboBoxEvents TValue="string" TItem="Customer" ValueChange="@(args => OnCustomerChange(args, order)" >
<ComboBoxEvents TValue="string" TItem="Customer" ValueChange="args => OnCustomerChange(args, order)"></ComboBoxEvents>
</SfComboBox>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following example demonstrates how to handle row selection in the Grid using
<Template>
@{
var PrimaryVal = (context as Order);
<SfRadioButton @ref="RadioButtonInstance" Name="RadioBtn "Value="@PrimaryVal.CustomerID" ValueChange="ValueChange" TChecked="string"></SfRadioButton>
<SfRadioButton @ref="RadioButtonInstance" Name="RadioBtn" Value="@PrimaryVal.CustomerID" ValueChange="ValueChange" TChecked="string"></SfRadioButton>
}
</Template>
</GridColumn>
Expand Down
4 changes: 3 additions & 1 deletion blazor/datagrid/paging.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# Paging in Blazor DataGrid

[Paging](https://www.syncfusion.com/blazor-components/blazor-datagrid/paging) provides an option to display Syncfsion Blazor DataGrid data in segmented pages, making it easier to navigate through large datasets. This feature is particularly useful when dealing with extensive data sets.
[Paging](https://www.syncfusion.com/blazor-components/blazor-datagrid/paging) provides an option to display Syncfusion Blazor DataGrid data in segmented pages, making it easier to navigate through large datasets. This feature is particularly useful when dealing with extensive data sets.

To enable paging, you need to set the [AllowPaging](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_AllowPaging) property to **true**. This property determines whether paging is enabled or disabled for the Grid. When paging is enabled, a pager rendered at the bottom of the Grid, allowing you to navigate through different pages of data.

Expand Down Expand Up @@ -450,6 +450,7 @@ The following example demonstrates how to render a **NumericTextBox** in the pag
{% highlight razor tabtitle="Index.razor" %}
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.Inputs
@using Syncfusion.Blazor.Navigations

<SfGrid DataSource="@GridData" @ref="Grid" AllowPaging="true">
<GridPageSettings PageSize="@pageSize">
Expand All @@ -469,6 +470,7 @@ The following example demonstrates how to render a **NumericTextBox** in the pag
<span> of @totalPages pages (@GridData.Count items)</span>
</div>
</div>
</div>
}
</Template>
</GridPageSettings>
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/aggregate.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Aggregate customization in Blazor DataGrid | Syncfusion
description: Learn here all about aggregate in Syncfusion Blazor DataGrid and more.
description: Learn here all about aggregate customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
14 changes: 7 additions & 7 deletions blazor/datagrid/style-and-appearance/editing.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Editing customization in DataGrid | Syncfusion
description: Learn here all about editing in Syncfusion Blazor DataGrid and more.
description: Learn here all about editing customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down Expand Up @@ -50,7 +50,7 @@ In this example, the **.e-gridform** class represents the editing form, and the
<GridPageSettings PageSize="8"></GridPageSettings>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.CustomerID) HeaderText="Customer ID" Width="120"></GridColumn>
<GridColumn Field=@nameof(OrderData.ShipCity) HeaderText="Ship City" Width="100"></GridColumn>
<GridColumn Field=@nameof(OrderData.ShipName) HeaderText="Ship Name" Width="100"></GridColumn>
Expand Down Expand Up @@ -126,7 +126,7 @@ public class OrderData
{% endhighlight %}
{% endtabs %}

{% previewsample "https://blazorplayground.syncfusion.com/embed/LtLStyZhJXEhbeSg?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/htLINOLffsrjCvCt?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

## Customizing the edit dialog header element

Expand All @@ -152,7 +152,7 @@ In this example, the **.e-edit-dialog** class represents the edit dialog, and th
<GridPageSettings PageSize="8"></GridPageSettings>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="Syncfusion.Blazor.Grids.EditMode.Dialog"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.CustomerID) HeaderText="Customer ID" Width="120"></GridColumn>
<GridColumn Field=@nameof(OrderData.ShipCity) HeaderText="Ship City" Width="100"></GridColumn>
<GridColumn Field=@nameof(OrderData.ShipName) HeaderText="Ship Name" Width="100"></GridColumn>
Expand Down Expand Up @@ -224,7 +224,7 @@ public class OrderData
{% endhighlight %}
{% endtabs %}

{% previewsample "https://blazorplayground.syncfusion.com/embed/rDretyNVJZGMwDNm?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/rjBetEhJzsqPbguh?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

## Customizing the command column buttons

Expand Down Expand Up @@ -254,7 +254,7 @@ In this example, the **.e-edit, .e-delete, .e-update, and .e-cancel-icon** class
<GridPageSettings PageSize="8"></GridPageSettings>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.CustomerID) HeaderText="Customer ID" Width="120"></GridColumn>
<GridColumn Field=@nameof(OrderData.Freight) HeaderText="Freight" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(OrderData.ShipCountry) HeaderText="Ship Country" Width="100"></GridColumn>
Expand Down Expand Up @@ -337,5 +337,5 @@ public class OrderData
{% endhighlight %}
{% endtabs %}

{% previewsample "https://blazorplayground.syncfusion.com/embed/BXrItotrzWzFhlUN?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/VDrIjYBTfCdNCmvv?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/filtering.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Filtering customization in Blazor DataGrid | Syncfusion
description: Learn here all about filtering in Syncfusion Blazor DataGrid and more.
description: Learn here all about filtering customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/grouping.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Grouping customization in Blazor DataGrid | Syncfusion
description: Learn here all about grouping in Syncfusion Blazor DataGrid and more.
description: Learn here all about grouping customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/header.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Header customization in Blazor DataGrid | Syncfusion
description: Learn here all about header in Syncfusion Blazor DataGrid and more.
description: Checkout and learn here all about header customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/paging.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Paging customization in Blazor DataGrid | Syncfusion
description: Learn here all about paging in Syncfusion Blazor DataGrid and more.
description: Checkout and learn here all about paging customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/selection.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Selection customization in Blazor DataGrid | Syncfusion
description: Learn here all about selection in Syncfusion Blazor DataGrid and more.
description: Learn here all about selection customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/sorting.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Sorting customization in Blazor DataGrid | Syncfusion
description: Learn here all about sorting in Syncfusion Blazor DataGrid and more.
description: Learn here all about sorting customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/style-and-appearance/toolbar.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Toolbar in Blazor DataGrid | Syncfusion
description: Checkout and learn here all about toolbar in Syncfusion Blazor DataGrid and more.
description: Checkout and learn here all about toolbar customization in Syncfusion Blazor DataGrid component and more details.
platform: Blazor
control: DataGrid
documentation: ug
Expand Down
24 changes: 14 additions & 10 deletions blazor/datagrid/template-pdf-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,21 @@ In the following example:
<GridColumn Field=@nameof(ProductData.Status) HeaderText="Status" Width="180"></GridColumn>
</GridColumns>
</SfGrid>
<style type="text/css" class="cssStyles">.detailtable td {
font-size: 13px;
padding: 4px;
max-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: normal;
}

</style>@code {
<style type="text/css" class="cssStyles">
.detailtable td {
font-size: 13px;
padding: 4px;
max-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: normal;
}

</style>

@code {

SfGrid<ProductData>DefaultGrid;

Expand Down
12 changes: 6 additions & 6 deletions blazor/datagrid/tool-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,28 +120,28 @@ In the following example, the [Blazor Toggle Switch](https://help.syncfusion.com
Orders = OrderData.GetAllRecords();
}

private void Change(Syncfusion.Blazor.Buttons.ChangeEventArgs<bool> args)
private async Task Change(Syncfusion.Blazor.Buttons.ChangeEventArgs<bool> args)
{
if (args.Checked)
{
this.Grid.EnableToolbarItems(new List<string>() { "Grid_Expand", "Grid_Collapse" }, false);
await this.Grid.EnableToolbarItemsAsync(new List<string>() { "Grid_Expand", "Grid_Collapse" }, false);
}
else
{
this.Grid.EnableToolbarItems(new List<string>() { "Grid_Expand", "Grid_Collapse" }, true);
await this.Grid.EnableToolbarItemsAsync(new List<string>() { "Grid_Expand", "Grid_Collapse" }, true);
}

}

public async Task ToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args)
{
if (args.Item.Text == "Expand")
{
await this.Grid.GroupExpandAll();
await this.Grid.ExpandAllGroupAsync();
}
if (args.Item.Text == "Collapse")
{
await this.Grid.GroupCollapseAll();
await this.Grid.CollapseAllGroupAsync();
}
}
}
Expand Down
Loading