Get Started
Install
Once published to NuGet:
dotnet add package FlexCore
Or as a project reference (during development):
<ProjectReference Include="..\path\to\FlexCore\FlexCore.csproj" />
Or download the source as a zip:
Register services
In Program.cs:
using Fx.ControlKit.Notifications;
builder.Services.AddScoped<NotificationService>();
// ...register your own adapters for IReportDataExecutor, IReportSessionContext,
// IReportExporter, IReportPickListProvider if you use the report writer.Use a control
In a Razor page or layout:
@using Fx.ControlKit.Grid
<GridControl TValue="MyRow" DataSource="@rows"
AllowSelection="true" AllowSorting="true"
AllowFiltering="true" AllowGrouping="true">
<GridColumnsBase>
<GridColumn Field="Id" HeaderText="ID" Width="80px" />
<GridColumn Field="Name" HeaderText="Name" Width="200px" />
<GridColumn Field="Quantity" HeaderText="Qty" Width="100px"
Type="ColumnType.Number" Format="N0" TextAlign="TextAlign.Right" />
</GridColumnsBase>
</GridControl>Targets
- .NET 10.0
- Blazor Server or Blazor WebAssembly