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
                    
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="Soenneker.DataTables.Dtos.Column" Version="4.0.26" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.DataTables.Dtos.Column" Version="4.0.26" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.DataTables.Dtos.Column" />
                    
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 Soenneker.DataTables.Dtos.Column --version 4.0.26
                    
#r "nuget: Soenneker.DataTables.Dtos.Column, 4.0.26"
                    
#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 Soenneker.DataTables.Dtos.Column@4.0.26
                    
#: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=Soenneker.DataTables.Dtos.Column&version=4.0.26
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.DataTables.Dtos.Column&version=4.0.26
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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

  • Visible defaults to true; Searchable and Orderable default to false.
  • Order and ResponsivePriority default to -1 as an unspecified value for consuming code to interpret.
  • Data and OrderData are object because DataTables accepts multiple shapes. Prefer predictable values such as a property-path string, an integer column index, or an integer array.
  • CreatedCell is .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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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
Loading failed

Make column DTO safe to serialize