Soenneker.DataTables.Dtos.Column
4.0.26
Prefix Reserved
dotnet add package Soenneker.DataTables.Dtos.Column --version 4.0.26
NuGet\Install-Package Soenneker.DataTables.Dtos.Column -Version 4.0.26
<PackageReference Include="Soenneker.DataTables.Dtos.Column" Version="4.0.26" />
<PackageVersion Include="Soenneker.DataTables.Dtos.Column" Version="4.0.26" />
<PackageReference Include="Soenneker.DataTables.Dtos.Column" />
paket add Soenneker.DataTables.Dtos.Column --version 4.0.26
#r "nuget: Soenneker.DataTables.Dtos.Column, 4.0.26"
#:package Soenneker.DataTables.Dtos.Column@4.0.26
#addin nuget:?package=Soenneker.DataTables.Dtos.Column&version=4.0.26
#tool nuget:?package=Soenneker.DataTables.Dtos.Column&version=4.0.26
Soenneker.DataTables.Dtos.Column
DataTableColumn represents a DataTables column definition that can be assembled in .NET and serialized for client-side table initialization.
Installation
dotnet add package Soenneker.DataTables.Dtos.Column
Usage
using Soenneker.DataTables.Dtos.Column;
using System.Text.Json;
var columns = new[]
{
new DataTableColumn
{
Data = "name",
Name = "name",
Title = "Customer",
Searchable = true,
Orderable = true,
ResponsivePriority = 1
},
new DataTableColumn
{
Data = "createdAt",
Name = "createdAt",
Title = "Created",
Type = "date",
Orderable = true,
Width = "12rem"
}
};
string json = JsonSerializer.Serialize(columns);
The properties use DataTables' camel-case JSON names, so the output is ready to use as the columns option without a custom naming policy.
Behavior to know
Visibledefaults totrue;SearchableandOrderabledefault tofalse.OrderandResponsivePrioritydefault to-1as an unspecified value for consuming code to interpret.DataandOrderDataareobjectbecause DataTables accepts multiple shapes. Prefer predictable values such as a property-path string, an integer column index, or an integer array.CreatedCellis .NET-only callback state and is ignored during JSON serialization. Provide browser callbacks in JavaScript rather than expecting a delegate to cross the JSON boundary.- This DTO does not verify that data paths, DataTables type names, widths, or ordering indices are valid.
| 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. |
-
net10.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.DataTables.Dtos.Column:
| Package | Downloads |
|---|---|
|
Soenneker.Blazor.DataTables
A Blazor interop library for DataTables |
|
|
Soenneker.Quark.Suite
Shadcn-powered Blazor UI, refined and modular. |
|
|
Soenneker.DataTables.Extensions.Types
A collection of helpful Type extension methods relating to DataTable.js |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.26 | 566 | 8/30/2026 |
| 4.0.25 | 77 | 8/29/2026 |
| 4.0.24 | 11,597 | 7/28/2026 |
| 4.0.23 | 7,487 | 7/16/2026 |
| 4.0.22 | 8,378 | 6/19/2026 |
| 4.0.21 | 7,954 | 6/5/2026 |
| 4.0.20 | 10,902 | 4/22/2026 |
| 4.0.19 | 10,563 | 3/12/2026 |
| 4.0.18 | 130 | 3/12/2026 |
| 4.0.17 | 124 | 3/12/2026 |
| 4.0.16 | 223 | 3/12/2026 |
| 4.0.15 | 1,071 | 3/10/2026 |
| 4.0.14 | 664 | 3/9/2026 |
| 4.0.13 | 414 | 3/9/2026 |
| 4.0.12 | 157 | 3/9/2026 |
| 4.0.11 | 1,389 | 3/4/2026 |
| 4.0.10 | 5,886 | 1/2/2026 |
| 4.0.9 | 2,180 | 11/21/2025 |
| 4.0.8 | 1,416 | 11/6/2025 |
| 4.0.7 | 1,455 | 10/29/2025 |
Make column DTO safe to serialize