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










1















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
enter image description here



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










share|improve this question
























  • 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















1















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
enter image description here



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










share|improve this question
























  • 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













1












1








1








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
enter image description here



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










share|improve this question
















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
enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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 '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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript