Soenneker.DataTables.Dtos.ServerResponse
11.0.37
Prefix Reserved
dotnet add package Soenneker.DataTables.Dtos.ServerResponse --version 11.0.37
NuGet\Install-Package Soenneker.DataTables.Dtos.ServerResponse -Version 11.0.37
<PackageReference Include="Soenneker.DataTables.Dtos.ServerResponse" Version="11.0.37" />
<PackageVersion Include="Soenneker.DataTables.Dtos.ServerResponse" Version="11.0.37" />
<PackageReference Include="Soenneker.DataTables.Dtos.ServerResponse" />
paket add Soenneker.DataTables.Dtos.ServerResponse --version 11.0.37
#r "nuget: Soenneker.DataTables.Dtos.ServerResponse, 11.0.37"
#:package Soenneker.DataTables.Dtos.ServerResponse@11.0.37
#addin nuget:?package=Soenneker.DataTables.Dtos.ServerResponse&version=11.0.37
#tool nuget:?package=Soenneker.DataTables.Dtos.ServerResponse&version=11.0.37
Soenneker.DataTables.Dtos.ServerResponse
DataTableServerResponse produces the JSON envelope expected by DataTables when serverSide processing is enabled.
Installation
dotnet add package Soenneker.DataTables.Dtos.ServerResponse
Successful response
using Microsoft.AspNetCore.Mvc;
using Soenneker.DataTables.Dtos.ServerResponse;
public IActionResult GetCustomers(int draw)
{
CustomerRow[] page = GetCurrentPage();
return Ok(DataTableServerResponse.Success(
draw: draw,
recordsTotal: 12_430,
recordsFiltered: 87,
data: page));
}
The serialized response uses DataTables' required property names:
{
"draw": 3,
"recordsTotal": 12430,
"recordsFiltered": 87,
"data": []
}
recordsTotal is the count before search filters. recordsFiltered is the count after filtering but before paging. data contains only the requested page.
Always echo the parsed integer draw from the request; do not copy an untrusted raw string into a response.
Failed response
return Ok(DataTableServerResponse.Fail(request.Draw, "Unable to load customers."));
Keep Error suitable for display and log internal exception details separately. The optional ContinuationToken is a package extension for storage systems that page by cursor; DataTables itself does not manage that token automatically.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Text.Json (>= 10.0.14)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.DataTables.Dtos.ServerResponse:
| Package | Downloads |
|---|---|
|
Soenneker.Blazor.DataTables
A Blazor interop library for DataTables |
|
|
Soenneker.Quark.Suite
Shadcn-powered Blazor UI, refined and modular. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.37 | 4,389 | 10/28/2026 |
| 11.0.36 | 1,854 | 10/26/2026 |
| 4.0.35 | 4,928 | 10/14/2026 |
| 4.0.34 | 667 | 10/14/2026 |
| 4.0.33 | 96 | 10/14/2026 |
| 4.0.32 | 456 | 10/13/2026 |
| 4.0.29 | 119 | 10/12/2026 |
| 4.0.28 | 140 | 10/12/2026 |
| 4.0.27 | 784 | 10/11/2026 |
| 4.0.26 | 10,290 | 9/24/2026 |
| 4.0.25 | 3,591 | 9/15/2026 |
| 4.0.24 | 3,214 | 9/12/2026 |
| 4.0.23 | 6,678 | 9/4/2026 |
| 4.0.21 | 2,470 | 8/29/2026 |
| 4.0.20 | 13,396 | 7/27/2026 |
| 4.0.19 | 5,408 | 7/16/2026 |
| 4.0.18 | 8,923 | 6/18/2026 |
| 4.0.17 | 7,479 | 6/5/2026 |
| 4.0.16 | 10,816 | 4/22/2026 |
| 4.0.15 | 10,526 | 3/12/2026 |
Target DataTables contracts at netstandard2.0