<SfGrid DataSource="@Entities" ShowColumnChooser="true" Toolbar="@( new List<string>() { "ColumnChooser"})"
AllowGrouping="true" AllowPaging="true" AllowResizing="true" AllowReordering="true" AllowTextWrap="true"
AllowSorting="true" AllowFiltering="true">
<GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
<GridGroupSettings Columns="@GroupedColumns"></GridGroupSettings>
<GridColumns>
<GridColumn Field=@nameof(Entity.EntityId) IsPrimaryKey="true" HeaderText="ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(Entity.Name) HeaderText="Name" Width="150"></GridColumn>
<GridColumn Field=@nameof(Entity.Domain) HeaderText="Domain" Width="150"></GridColumn>
<GridColumn Field=@nameof(Entity.CreatedOn) HeaderText="Created on" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
<GridColumn Field=@nameof(Entity.CreatedBy) HeaderText="Created by" FilterSettings="@(new FilterSettings{ Operator = Operator.Contains })" TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid> |