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
2 changes: 2 additions & 0 deletions blazor/datagrid/column-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ In the following sample, you must use the `ValidateComplexType` attribute for th
}
```

> To include the package **Microsoft.AspNetCore.Components.DataAnnotations.Validation** for complex type validation

![Validate Complex Column Using Data Annotation Attribute in Blazor DataGrid](./images/blazor-datagrid-validate-complex-column-using-data-annotation-attribute.gif)

## Custom validator component
Expand Down
3 changes: 1 addition & 2 deletions blazor/datagrid/custom-aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ Here’s an example that demonstrates how to use the custom aggregate feature in
{

}
public OrderData(int? OrderID, string CustomerID, string ShipCountry, DateTime OrderDate, double Freight)
public OrderData(int? OrderID, string CustomerID, string ShipCountry, double Freight)
{
this.OrderID = OrderID;
this.CustomerID = CustomerID;
this.ShipCountry = ShipCountry;
this.OrderDate = OrderDate;
this.Freight = Freight;
}

Expand Down
2 changes: 2 additions & 0 deletions blazor/datagrid/data-annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ The following sample code demonstrates data annotations implemented in the DataG

```cshtml
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.DropDowns
@using System.Reflection
@using System.ComponentModel.DataAnnotations;

<SfGrid TValue="Order" DataSource="@Orders" Height="315" Width="500" AllowPaging="true" AllowFiltering="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })">
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To add the printing option to the grid’s Toolbar, simply include the [Toolbar]
@using Syncfusion.Blazor.Grids
@using BlazorApp1.Data

<SfGrid DataSource="@Orders" Height="315" oolbar="@(new List<object>() { "Print" })">
<SfGrid DataSource="@Orders" Height="315" Toolbar="@(new List<object>() { "Print" })">
<GridColumns>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right" Width="140"></GridColumn>
<GridColumn Field=@nameof(OrderData.CustomerID) HeaderText="Customer ID" Width="120"></GridColumn>
Expand Down
2 changes: 1 addition & 1 deletion blazor/datagrid/scrolling.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ The following demo shows how to change the default frozen line color.
background-color: aqua;
}

.e-grid .e-leftfreeze.e-freezeleftborder {
.e-grid.e-lib .e-leftfreeze.e-freezeleftborder{
border-right-color: aqua;
}

Expand Down
8 changes: 8 additions & 0 deletions blazor/datagrid/searching.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,14 @@ The following example demonstrates how to set the `SearchSettings.Operator` prop
public Operator Value { get; set; }
}

public enum Operator
{
StartsWith,
EndsWith,
Contains,
Equal
}

List<DropDownOrder> DropDownData = new List<DropDownOrder>
{
new DropDownOrder(){Text="StartsWith",Value= Operator.StartsWith },
Expand Down