Klyroo.Table
0.1.0-preview.2
dotnet add package Klyroo.Table --version 0.1.0-preview.2
NuGet\Install-Package Klyroo.Table -Version 0.1.0-preview.2
<PackageReference Include="Klyroo.Table" Version="0.1.0-preview.2" />
<PackageVersion Include="Klyroo.Table" Version="0.1.0-preview.2" />
<PackageReference Include="Klyroo.Table" />
paket add Klyroo.Table --version 0.1.0-preview.2
#r "nuget: Klyroo.Table, 0.1.0-preview.2"
#:package Klyroo.Table@0.1.0-preview.2
#addin nuget:?package=Klyroo.Table&version=0.1.0-preview.2&prerelease
#tool nuget:?package=Klyroo.Table&version=0.1.0-preview.2&prerelease
Klyroo.Table
Data lists for Blazor and .NET MAUI Blazor Hybrid: a table and a card grid with search, filters, sorting, paging, selection and bulk actions, for .NET developers who build list pages.
A list page needs search, filters, sort, paging and URL state wired to a data source, and it needs them again on the next page. KlyDataList holds that state, loads rows from memory, an IQueryable or any asynchronous provider, and shares it with parts you compose: table, grid, search field, filter tags, pagination. The state lives in the query string, so the same markup works in static server rendering (links and forms) and in the interactive render modes. The request and filter model comes from Klyroo.Query and the controls are Klyroo.UI components.
Features
- Three row sources: pass in-memory
Items, a databaseQueryablerun by a replaceableIDataListQueryExecutor, or aProviderdelegate that loads a page from an API. - One schema for search, filters and sort: a
DataListSchema<T>declares which fields sort, filter and search, and requests are sanitized against it before they reach the data. - State in the URL: search, filters, sort, page, page size and layout are written to the query string by default, so Back, shared links and static server rendering work;
@bind-Statereads and sets it from your code. - Table, card grid and phone summary rows: the same list renders as a table, as cards, or as compact rows below the
mdbreakpoint. - Three paging modes: numbered pages, keyset cursor paging with an infinite loader, or no paging; the table can virtualize rows in the last two.
- Selection and actions: checkbox column, a bulk action bar that can target every result of a query, per-row actions with confirmation dialogs, and a toolbar actions menu.
- Grouping, totals and trees: collapsible row groups, footer aggregates (sum, average, count, min, max) and a headless
DataListTree<T>for hierarchical rows. - Multi-column sort: Shift+click appends a column to the sort, headers number the sorts, and the sort menu edits the list.
- CSV export:
KlyDataListExportdownloads the visible columns as the user sees them (this page, the selection or every result), with formula-injection protection, a culture-aware delimiter and anOnExporthook for MAUI. - Master-detail:
DetailTemplatedraws an expandable full-width row under each row, driven by the row expansion state of the list. - Row hooks:
RowHrefstretches an accessible link over each row (static renders too),OnRowClickreports clicks and Enter on a row with the modifier keys, andRowClass,RowAttributesandCellClassstyle rows and cells from the data. - Column control: show, hide, reorder, pin and resize columns, with preferences kept in a cookie (or
localStoragein a MAUI web view).
Packages
| Package | Description |
|---|---|
Klyroo.Table.Core |
UI-free tree model (DataListTree<T>) built on Klyroo.Query.Core. NativeAOT compatible and trimmable. |
Klyroo.Table |
The Blazor components, AddKlyrooTable(), themes and 12 message tables. Depends on Klyroo.Table.Core, Klyroo.Query and Klyroo.UI. |
For native .NET MAUI apps without a BlazorWebView, the repository also includes Klyroo.Table.Maui (built from source over Klyroo.Table.Core and Klyroo.UI.Maui).
Prerequisites
To use the library in an app:
- The .NET 11 SDK, and an app that targets
net11.0. The packages are prereleases, so everydotnet add packagecommand needs--prerelease. - A Blazor app for
Klyroo.Table: a Blazor Web App or a .NET MAUI Blazor Hybrid app. Selection, the selection bar and actions need an interactive render mode (Interactive Server, WebAssembly or Auto); in static server rendering, sorting, filtering and paging work through links and GET forms. In a WebAssembly or Auto app, register the services in the server project and in the.Clientproject. - Klyroo.UI set up in the app.
Klyroo.Tablebrings the Klyroo.UI package, andAddKlyrooTable()registers its services, but the layout still needs the Klyroo.UI stylesheets in<head>and<KlyApp>around the body, as described in the Klyroo.UI installation. - Klyroo.Query for the list state;
Klyroo.Tablebrings it. To run lists against a database through EF Core, addKlyroo.Query.EntityFrameworkCore(EF Core 10.0.15 or later). To cut days in the user's time zone in static server rendering, addKlyroo.UI.Serverand callAddKlyrooServer(). - A browser with the native popover API, which Klyroo.UI uses: Chrome and Edge 114, Safari 17 or Firefox 125, or later. In a .NET MAUI app, that means iOS or Mac Catalyst 17, or an Android System WebView 114 or later.
- Network access on the first build only if your app self-hosts web fonts (
KlyrooFont), uses icons outside the built-in set, or compiles Tailwind (KlyrooTailwind): the build downloads them once and caches them underobj/klyroo. Node.js is not needed. Klyroo.Table.Corealone (the tree model) runs in any .NET 11 app.
To build this repository you need the .NET 11 SDK (a newer SDK works too, see global.json) and clones of klyroo-query and klyroo-ui in the same parent folder: some projects reference them by relative path (../klyroo-query/...). See Contributing.
Installation
dotnet add package Klyroo.Table --prerelease
Register the services in Program.cs, in the server project and in the WebAssembly client project if you have one, or in MauiProgram.cs:
using Klyroo.Table;
builder.Services.AddKlyrooTable();
Add the imports to _Imports.razor:
@using Klyroo.UI
@using Klyroo.Table
@using Klyroo.Query
Klyroo.Table ships no stylesheet that is safe to load next to the Klyroo.UI one, so the app compiles Tailwind CSS itself. See Getting started for the stylesheet setup.
For code that needs no UI, install only the core package:
dotnet add package Klyroo.Table.Core --prerelease
Quick start
Headless, with Klyroo.Table.Core: build the nodes of a tree of rows.
using Klyroo.Query;
using Klyroo.Table;
Employee[] staff =
[
new(1, "Ada", [new(2, "Grace", [new(3, "Alan")]), new(4, "Linus")]),
];
var schema = DataListSchema.For<Employee>(s => s.RowKey(e => e.Id));
var tree = new DataListTree<Employee> { Children = e => e.Reports, DefaultExpandedDepth = 2 };
var (roots, nodes) = tree.BuildTree(staff, schema);
foreach (var node in nodes)
{
Console.WriteLine($"{new string(' ', node.Depth * 2)}{node.Item.Name}");
}
public sealed record Employee(int Id, string Name, IReadOnlyList<Employee>? Reports = null);
In a Blazor page, a searchable, sortable, paged table of in-memory rows:
@page "/customers"
<KlyDataList TItem="Customer" Schema="Schema" Items="Customers" Label="Customers" />
@code {
private sealed record Customer(int Id, string Name, string Country, decimal Mrr);
private static readonly DataListSchema<Customer> Schema = DataListSchema.For<Customer>(s => s
.RowKey(c => c.Id)
.Search(c => c.Name, c => c.Country)
.Field(c => c.Name, f => f.Sortable())
.Field(c => c.Country, f => f.Sortable())
.Field(c => c.Mrr, f => f.Sortable()));
private static readonly Customer[] Customers =
[
new(1, "Acme", "France", 1200m),
new(2, "Globex", "Germany", 800m),
new(3, "Initech", "France", 450m),
];
}
Without child content the list renders a default layout: a search field (when the schema has search fields), the result count, a refresh button, filter tags (when the schema has filters), a table with one column per schema field, and numbered pagination. Child content replaces that layout with the parts you place.
Documentation
| Getting started | Step-by-step first integration |
| Guides | Task-oriented recipes |
| Concepts | How the library works |
| Platforms | Render modes, .NET MAUI, NativeAOT |
| API reference | Every public type and member |
| FAQ | Troubleshooting and limitations |
Compatibility
- .NET 11 SDK.
- Blazor Web App in static server rendering, Interactive Server, WebAssembly or Auto. In static rendering the controls are links and GET forms; selection and actions need an interactive render.
- .NET MAUI Blazor Hybrid: the package declares
browser,ios,android,maccatalystandwindowsas supported platforms. This repository has no MAUI app or test that runs it. - NativeAOT and trimming:
Klyroo.Table.CoresetsIsAotCompatibleandIsTrimmable, and CI builds it with the AOT and trimming analyzers.Klyroo.TablesetsIsTrimmableonly. - Tailwind CSS v4 compiled by your app, as described in Getting started.
Klyroo ecosystem
Klyroo is a family of independent .NET libraries that compose. Each one has its own repository, versions and releases.
| Library | Description |
|---|---|
| Klyroo.UI | Accessible Blazor components for the web and .NET MAUI Blazor Hybrid, styled with Tailwind CSS v4 |
| Klyroo.Query | Typed query model, URL state sync, and IQueryable / EF Core execution |
| Klyroo.Table | Data lists with table and card-grid layouts, filters, selection and actions |
| Klyroo.Form | Schema-driven forms, validation and wizards |
| Klyroo.Dashboard | Dashboard controller, filters and Blazor blocks: stats, gauges, charts, tables and feeds |
| Klyroo.Display | Code highlighting, secret and file list components, media player controls and file preview |
| Klyroo.Spreadsheet | Import wizard for CSV, TSV and pasted data, with column and value mapping |
| Klyroo.Agent | Bridge that lets AI agents read and act on Klyroo forms, dashboards and imports |
| Klyroo.Hotkey | Server-side .NET client for Hotkey cloud browsers, human handoffs and signed webhooks |
| Klyroo.Stack | Meta-package, MCP documentation server and dotnet new templates |
Contributing
Contributions are welcome. Read CONTRIBUTING.md before opening a pull request, and follow the code of conduct. Report security issues privately as described in SECURITY.md.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Klyroo.Query (= 0.1.0-preview.2)
- Klyroo.Query.Core (= 0.1.0-preview.2)
- Klyroo.Table.Core (= 0.1.0-preview.2)
- Klyroo.UI (= 0.1.0-preview.2)
-
net11.0
- Klyroo.Query (= 0.1.0-preview.2)
- Klyroo.Query.Core (= 0.1.0-preview.2)
- Klyroo.Table.Core (= 0.1.0-preview.2)
- Klyroo.UI (= 0.1.0-preview.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Klyroo.Table:
| Package | Downloads |
|---|---|
|
Klyroo.Stack
Umbrella meta-package for the entire Klyroo ecosystem (UI, Query, Table, Form, Dashboard, Display, Spreadsheet, Agent) for Blazor Web and .NET MAUI Hybrid. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.2 | 37 | 11/29/2026 |
| 0.1.0-preview.1 | 40 | 11/29/2026 |