Skip to content
Merged
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
25 changes: 12 additions & 13 deletions blazor/datagrid/cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,15 +812,15 @@ public class OrderData
{
if (Orders.Count() == 0)
{
Orders.Add(new OrderData(10248, "VINET", new DateTime(2025, 07, 07), 32.38));
Orders.Add(new OrderData(10249, "TOMSP", new DateTime(2025, 07, 07), 92.38));
Orders.Add(new OrderData(10250, "HANAR", new DateTime(2025, 07, 07), 62.77));
Orders.Add(new OrderData(10251, "VICTE", new DateTime(2025, 07, 07), 12.38));
Orders.Add(new OrderData(10252, "SUPRD", new DateTime(2025, 07, 07), 82.38));
Orders.Add(new OrderData(10253, "CHOPS", new DateTime(2025, 07, 07), 31.31));
Orders.Add(new OrderData(10254, "RICSU", new DateTime(2025, 07, 07), 22.37));
Orders.Add(new OrderData(10255, "WELLI", new DateTime(2025, 07, 07), 44.34));
Orders.Add(new OrderData(10256, "RICSU", new DateTime(2025, 07, 07), 31.33));
Orders.Add(new OrderData(10248, "VINET", new DateTime(2025, 08, 01), 32.38));
Orders.Add(new OrderData(10249, "TOMSP", new DateTime(2025, 04, 30), 92.38));
Orders.Add(new OrderData(10250, "HANAR", new DateTime(2025, 07, 26), 62.77));
Orders.Add(new OrderData(10251, "VICTE", new DateTime(2025, 07, 09), 12.38));
Orders.Add(new OrderData(10252, "SUPRD", new DateTime(2025, 05, 07), 82.38));
Orders.Add(new OrderData(10253, "CHOPS", new DateTime(2025, 07, 10), 31.31));
Orders.Add(new OrderData(10254, "RICSU", new DateTime(2025, 01, 22), 22.37));
Orders.Add(new OrderData(10255, "WELLI", new DateTime(2025, 03, 17), 44.34));
Orders.Add(new OrderData(10256, "RICSU", new DateTime(2025, 07, 20), 31.33));
}
return Orders;
}
Expand All @@ -833,7 +833,7 @@ public class OrderData
{% endhighlight %}
{% endtabs %}

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

### Tooltip template

Expand All @@ -855,7 +855,7 @@ The following sample demonstrates a custom tooltip implementation using the `Too

@using Syncfusion.Blazor.Grids

<SfGrid DataSource="@Orders" Height="330" ShowTooltip="true" Width="700">
<SfGrid DataSource="@Orders" ShowTooltip="true" Width="700">
<GridTemplates>
<TooltipTemplate>
@{
Expand Down Expand Up @@ -994,7 +994,6 @@ public class OrdersDetails
Orders.Add (new OrdersDetails (1006, "Michael", 220, DateTime.Now.AddDays(-6), "Tokyo", "Japan", "Delivered", "Japan", "michael@example.com"));
Orders.Add (new OrdersDetails (1007, "Robert", 90, DateTime.Now.AddDays(-7), "Toronto", "Canada", "Cancelled", "Canada", "robert@example.com"));
Orders.Add (new OrdersDetails (1008, "Laura", 160, DateTime.Now.AddDays(1), "Sydney", "Australia", "Pending", "Australia", "laura@example.com"));
Orders.Add (new OrdersDetails (1009, "Anne", 90, DateTime.Now.AddDays(-9), "Reims", "France", "Delivered", "France", "anne@example.com"));
}
return Orders;
}
Expand All @@ -1013,7 +1012,7 @@ public class OrdersDetails
{% endhighlight %}
{% endtabs %}

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

> By default, custom tooltips will be displayed if the `ShowTooltip` property is set to **true**.

Expand Down
16 changes: 8 additions & 8 deletions blazor/datagrid/grouping.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,11 @@ The Syncfusion Blazor DataGrid offers the ability to persist the expand or colla

<div style="display:flex;gap: 5px;">
<label> Enable or disable grouped row state persistence</label>
<SfSwitch @bind-checked="IsPersist" OffLabel="OFF" OnLabel="ON" ValueChange="Change" TChecked="bool"></SfSwitch>
<SfSwitch @bind-checked="IsGroupStatePersistent " OffLabel="OFF" OnLabel="ON" ValueChange="Change" TChecked="bool"></SfSwitch>
</div>

<SfGrid DataSource="@GridData" AllowGrouping="true" Height="315px" AllowSorting="true" AllowFiltering="true" AllowPaging="true">
<GridGroupSettings Columns="@Initial" PersistGroupState=@IsPersist></GridGroupSettings>
<SfGrid DataSource="@GridData" AllowGrouping="true" Height="190px" AllowSorting="true" AllowFiltering="true" AllowPaging="true">
<GridGroupSettings Columns="@InitialGroupedColumns" PersistGroupState="@IsGroupStatePersistent"></GridGroupSettings>
<GridEditSettings AllowEditing="true"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" IsPrimaryKey="true" Width="90"></GridColumn>
Expand All @@ -494,8 +494,8 @@ The Syncfusion Blazor DataGrid offers the ability to persist the expand or colla

@code {
public List<OrderData> GridData { get; set; }
private bool IsPersist { get; set; } = true;
private string[] Initial = (new string[] { "CustomerID", "ShipCity" });
private bool IsGroupStatePersistent { get; set; } = true;
private string[] InitialGroupedColumns = new string[] { "CustomerID", "ShipCity" };

protected override void OnInitialized()
{
Expand All @@ -506,11 +506,11 @@ The Syncfusion Blazor DataGrid offers the ability to persist the expand or colla
{
if (args.Checked == true)
{
IsPersist = true;
IsGroupStatePersistent = true;
}
else
{
IsPersist = false;
IsGroupStatePersistent = false;
}
}
}
Expand Down Expand Up @@ -564,7 +564,7 @@ public class OrderData
{% endhighlight %}
{% endtabs %}

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

## Sort grouped columns in descending order during initial grouping

Expand Down