jquery datatable server side processing .net Core The Next CEO of Stack OverflowHow do you send and receive JSON with jQuery.dataTables 1.10 to a ASP.NET WebMethod backend?jQuery DataTables post data to serverWhy pagination doesn't work on serverside proccessing of jquery datatables even though “recordsTotal” and “recordsFiltered” are equalAngularjs Datatable server side paginationJQuery DataTable prevent server calls in client modeDataTables: Server-side formattingJQuery DataTables Server Side FilteringjQuery DataTable - Server-side processing (Pagination and search not working)DataTables server-side processing - echoing back draw() parameter (Python/Flask)jQuery Datatables server side processing no result returnDataTable Server Side Processing PHP
Proper way to express "He disappeared them"
Bartok - Syncopation (1): Meaning of notes in between Grand Staff
Why is quantifier elimination desirable for a given theory?
Is French Guiana a (hard) EU border?
Won the lottery - how do I keep the money?
Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?
Is it okay to majorly distort historical facts while writing a fiction story?
Is there a difference between "Fahrstuhl" and "Aufzug"
Domestic-to-international connection at Orlando (MCO)
Why is information "lost" when it got into a black hole?
Should I tutor a student who I know has cheated on their homework?
Is a distribution that is normal, but highly skewed considered Gaussian?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Why the difference in type-inference over the as-pattern in two similar function definitions?
I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin
How to place nodes around a circle from some initial angle?
How to scale a tikZ image which is within a figure environment
is it ok to reduce charging current for li ion 18650 battery?
How many extra stops do monopods offer for tele photographs?
Need help understanding a power circuit (caps and diodes)
Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?
Why do airplanes bank sharply to the right after air-to-air refueling?
Unclear about dynamic binding
Math-accent symbol over parentheses enclosing accented symbol (amsmath)
jquery datatable server side processing .net Core
The Next CEO of Stack OverflowHow do you send and receive JSON with jQuery.dataTables 1.10 to a ASP.NET WebMethod backend?jQuery DataTables post data to serverWhy pagination doesn't work on serverside proccessing of jquery datatables even though “recordsTotal” and “recordsFiltered” are equalAngularjs Datatable server side paginationJQuery DataTable prevent server calls in client modeDataTables: Server-side formattingJQuery DataTables Server Side FilteringjQuery DataTable - Server-side processing (Pagination and search not working)DataTables server-side processing - echoing back draw() parameter (Python/Flask)jQuery Datatables server side processing no result returnDataTable Server Side Processing PHP
i'm using jquery datatable with .net core to build grids
i'm using server side processing
i'm using this package GitHub Link
the problem i get request unknown parameter 'CivilID' for row 0 column 0
Client Side
var table = $('#tblClient').DataTable(
language:
processing: "Loading Data...",
zeroRecords: "No matching records found"
,
processing: true,
serverSide: true,
orderCellsTop: true,
autoWidth: true,
deferRender: true,
dom: '<tr>',
ajax:
type: "POST",
url: '/Client/LoadTable/',
contentType: "application/json; charset=utf-8",
async: true,
data: function(data)
let additionalValues = [];
additionalValues[0] = "Additional Parameters 1";
additionalValues[1] = "Additional Parameters 2";
data.AdditionalValues = additionalValues;
return JSON.stringify(data);
,
columns: [
title: "CivilID",
data: "CivilID",
,
title: "LastName",
data: "LastName"
,
title: "FirstName",
data: "FirstName"
]
);
Server side
public async Task<IActionResult> LoadTable([FromBody]DTParameters param)
try
// var data = await _demoService.GetDataAsync(param);
List<ClientViewModel> ClientsList = new List<ClientViewModel>();
var result = HttpContext.Session.GetString("AllClients");
ClientsList = JsonConvert.DeserializeObject<List<ClientViewModel>>(result);
var json= new JsonResult(new DTResult<ClientViewModel>
draw = param.Draw,
data = ClientsList,
recordsFiltered = ClientsList.Count,
recordsTotal = ClientsList.Count
);
return json;
catch (Exception e)
Data
the data is in the picture is for the ClientViewModel
it is the same names in the client side
what i'm missing
thank you
jquery asp.net-core datatables
add a comment |
i'm using jquery datatable with .net core to build grids
i'm using server side processing
i'm using this package GitHub Link
the problem i get request unknown parameter 'CivilID' for row 0 column 0
Client Side
var table = $('#tblClient').DataTable(
language:
processing: "Loading Data...",
zeroRecords: "No matching records found"
,
processing: true,
serverSide: true,
orderCellsTop: true,
autoWidth: true,
deferRender: true,
dom: '<tr>',
ajax:
type: "POST",
url: '/Client/LoadTable/',
contentType: "application/json; charset=utf-8",
async: true,
data: function(data)
let additionalValues = [];
additionalValues[0] = "Additional Parameters 1";
additionalValues[1] = "Additional Parameters 2";
data.AdditionalValues = additionalValues;
return JSON.stringify(data);
,
columns: [
title: "CivilID",
data: "CivilID",
,
title: "LastName",
data: "LastName"
,
title: "FirstName",
data: "FirstName"
]
);
Server side
public async Task<IActionResult> LoadTable([FromBody]DTParameters param)
try
// var data = await _demoService.GetDataAsync(param);
List<ClientViewModel> ClientsList = new List<ClientViewModel>();
var result = HttpContext.Session.GetString("AllClients");
ClientsList = JsonConvert.DeserializeObject<List<ClientViewModel>>(result);
var json= new JsonResult(new DTResult<ClientViewModel>
draw = param.Draw,
data = ClientsList,
recordsFiltered = ClientsList.Count,
recordsTotal = ClientsList.Count
);
return json;
catch (Exception e)
Data
the data is in the picture is for the ClientViewModel
it is the same names in the client side
what i'm missing
thank you
jquery asp.net-core datatables
Add'dataSrc': function ( json ) console.log(json); return json.data;
as an option afterdata
and post the output here for at least one record. It is possible .NET wraps the response ind: /* response */
. See this answer if that's the case.
– Gyrocode.com
Mar 25 at 15:31
add a comment |
i'm using jquery datatable with .net core to build grids
i'm using server side processing
i'm using this package GitHub Link
the problem i get request unknown parameter 'CivilID' for row 0 column 0
Client Side
var table = $('#tblClient').DataTable(
language:
processing: "Loading Data...",
zeroRecords: "No matching records found"
,
processing: true,
serverSide: true,
orderCellsTop: true,
autoWidth: true,
deferRender: true,
dom: '<tr>',
ajax:
type: "POST",
url: '/Client/LoadTable/',
contentType: "application/json; charset=utf-8",
async: true,
data: function(data)
let additionalValues = [];
additionalValues[0] = "Additional Parameters 1";
additionalValues[1] = "Additional Parameters 2";
data.AdditionalValues = additionalValues;
return JSON.stringify(data);
,
columns: [
title: "CivilID",
data: "CivilID",
,
title: "LastName",
data: "LastName"
,
title: "FirstName",
data: "FirstName"
]
);
Server side
public async Task<IActionResult> LoadTable([FromBody]DTParameters param)
try
// var data = await _demoService.GetDataAsync(param);
List<ClientViewModel> ClientsList = new List<ClientViewModel>();
var result = HttpContext.Session.GetString("AllClients");
ClientsList = JsonConvert.DeserializeObject<List<ClientViewModel>>(result);
var json= new JsonResult(new DTResult<ClientViewModel>
draw = param.Draw,
data = ClientsList,
recordsFiltered = ClientsList.Count,
recordsTotal = ClientsList.Count
);
return json;
catch (Exception e)
Data
the data is in the picture is for the ClientViewModel
it is the same names in the client side
what i'm missing
thank you
jquery asp.net-core datatables
i'm using jquery datatable with .net core to build grids
i'm using server side processing
i'm using this package GitHub Link
the problem i get request unknown parameter 'CivilID' for row 0 column 0
Client Side
var table = $('#tblClient').DataTable(
language:
processing: "Loading Data...",
zeroRecords: "No matching records found"
,
processing: true,
serverSide: true,
orderCellsTop: true,
autoWidth: true,
deferRender: true,
dom: '<tr>',
ajax:
type: "POST",
url: '/Client/LoadTable/',
contentType: "application/json; charset=utf-8",
async: true,
data: function(data)
let additionalValues = [];
additionalValues[0] = "Additional Parameters 1";
additionalValues[1] = "Additional Parameters 2";
data.AdditionalValues = additionalValues;
return JSON.stringify(data);
,
columns: [
title: "CivilID",
data: "CivilID",
,
title: "LastName",
data: "LastName"
,
title: "FirstName",
data: "FirstName"
]
);
Server side
public async Task<IActionResult> LoadTable([FromBody]DTParameters param)
try
// var data = await _demoService.GetDataAsync(param);
List<ClientViewModel> ClientsList = new List<ClientViewModel>();
var result = HttpContext.Session.GetString("AllClients");
ClientsList = JsonConvert.DeserializeObject<List<ClientViewModel>>(result);
var json= new JsonResult(new DTResult<ClientViewModel>
draw = param.Draw,
data = ClientsList,
recordsFiltered = ClientsList.Count,
recordsTotal = ClientsList.Count
);
return json;
catch (Exception e)
Data
the data is in the picture is for the ClientViewModel
it is the same names in the client side
what i'm missing
thank you
jquery asp.net-core datatables
jquery asp.net-core datatables
edited Mar 21 at 18:07
Sterling Archer
16.1k126191
16.1k126191
asked Mar 21 at 18:03
Maher KhalilMaher Khalil
142216
142216
Add'dataSrc': function ( json ) console.log(json); return json.data;
as an option afterdata
and post the output here for at least one record. It is possible .NET wraps the response ind: /* response */
. See this answer if that's the case.
– Gyrocode.com
Mar 25 at 15:31
add a comment |
Add'dataSrc': function ( json ) console.log(json); return json.data;
as an option afterdata
and post the output here for at least one record. It is possible .NET wraps the response ind: /* response */
. See this answer if that's the case.
– Gyrocode.com
Mar 25 at 15:31
Add
'dataSrc': function ( json ) console.log(json); return json.data;
as an option after data
and post the output here for at least one record. It is possible .NET wraps the response in d: /* response */
. See this answer if that's the case.– Gyrocode.com
Mar 25 at 15:31
Add
'dataSrc': function ( json ) console.log(json); return json.data;
as an option after data
and post the output here for at least one record. It is possible .NET wraps the response in d: /* response */
. See this answer if that's the case.– Gyrocode.com
Mar 25 at 15:31
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286638%2fjquery-datatable-server-side-processing-net-core%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286638%2fjquery-datatable-server-side-processing-net-core%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Add
'dataSrc': function ( json ) console.log(json); return json.data;
as an option afterdata
and post the output here for at least one record. It is possible .NET wraps the response ind: /* response */
. See this answer if that's the case.– Gyrocode.com
Mar 25 at 15:31