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](https://secure.gravatar.com/avatar/27f28ae1cedf6909e455fd2f7ae431ba/?default=https%3A%2F%2Fvanillicon.com%2F27f28ae1cedf6909e455fd2f7ae431ba_200.png&rating=g&size=120)
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.