How to pass json to aoData, seems like it takes only key value pair.
How to pass json to aoData, seems like it takes only key value pair.
deepakrao
Posts: 1Questions: 1Answers: 0
My json format is,
var jsonString = '{ "SearchCriteria": { "FirstName": "", "LastName": "kum*", "ObjectName": "", "EmailAddress": "" }, "PaginationInfo": { "PageNum": 1, "PageSize": 10, "SortColumn": null, "SortDir": null } }'
I am trying to pass like below code.
"aoColumnDefs": aryJSONColTable,
"aaData": aoData,
"aLengthMenu": [
[20, 50, 100, 150, -1],
[20, 50, 100, 150, "All"] // change per page values here
],
"iDisplayLength": 20, // default record count per page
"bServerSide": true, // server side processing
"sAjaxSource": currentSource, // ajax source
"aaSorting": [[1, "asc"]] // set first column as a default sort by asc
But aoData seems like taking only key pair. How can I use PUSH method of aoData to pass above jsonString?
This discussion has been closed.