Klyroo.Table.Core 0.1.0-preview.2

This is a prerelease version of Klyroo.Table.Core.
dotnet add package Klyroo.Table.Core --version 0.1.0-preview.2
                    
NuGet\Install-Package Klyroo.Table.Core -Version 0.1.0-preview.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Klyroo.Table.Core" Version="0.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Klyroo.Table.Core" Version="0.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Klyroo.Table.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Klyroo.Table.Core --version 0.1.0-preview.2
                    
#r "nuget: Klyroo.Table.Core, 0.1.0-preview.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Klyroo.Table.Core@0.1.0-preview.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Klyroo.Table.Core&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Klyroo.Table.Core&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Tool

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.

CI NuGet License: MIT

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 database Queryable run by a replaceable IDataListQueryExecutor, or a Provider delegate 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-State reads 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 md breakpoint.
  • 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: KlyDataListExport downloads the visible columns as the user sees them (this page, the selection or every result), with formula-injection protection, a culture-aware delimiter and an OnExport hook for MAUI.
  • Master-detail: DetailTemplate draws an expandable full-width row under each row, driven by the row expansion state of the list.
  • Row hooks: RowHref stretches an accessible link over each row (static renders too), OnRowClick reports clicks and Enter on a row with the modifier keys, and RowClass, RowAttributes and CellClass style rows and cells from the data.
  • Column control: show, hide, reorder, pin and resize columns, with preferences kept in a cookie (or localStorage in 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 every dotnet add package command 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 .Client project.
  • Klyroo.UI set up in the app. Klyroo.Table brings the Klyroo.UI package, and AddKlyrooTable() 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.Table brings it. To run lists against a database through EF Core, add Klyroo.Query.EntityFrameworkCore (EF Core 10.0.15 or later). To cut days in the user's time zone in static server rendering, add Klyroo.UI.Server and call AddKlyrooServer().
  • 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 under obj/klyroo. Node.js is not needed.
  • Klyroo.Table.Core alone (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, maccatalyst and windows as supported platforms. This repository has no MAUI app or test that runs it.
  • NativeAOT and trimming: Klyroo.Table.Core sets IsAotCompatible and IsTrimmable, and CI builds it with the AOT and trimming analyzers. Klyroo.Table sets IsTrimmable only.
  • 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

MIT

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Klyroo.Table.Core:

Package Downloads
Klyroo.Stack.Core

Klyroo Core Meta-Package: aggregates all headless, NativeAOT-compatible Core engines of Klyroo (Query, Table, Form, Dashboard, Display, Spreadsheet, Agent) and the KlyrooStackCatalog router.

Klyroo.Table

Klyroo Table for Blazor Web and .NET MAUI Hybrid: data lists with table and card-grid layouts, filters, selection, actions, grouping, trees and summary rows.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.2 43 11/29/2026
0.1.0-preview.1 39 11/29/2026