Ajax Source: number of rows and columns got switched
Ajax Source: number of rows and columns got switched
I would like to use the ajax source capability. The server gives json like :
[code]
{"aaData":[["1", "45"],
["45", "43"],
["23", "3343"]]}
[/code]
And now datatables shows an alert message where it says:
Added data size 2 does not match known number of columns (3)
I thought that each entry in the array is a row and not a column. Does anyone have any idea? Any help would be greatly appreciated!
[code]
{"aaData":[["1", "45"],
["45", "43"],
["23", "3343"]]}
[/code]
And now datatables shows an alert message where it says:
Added data size 2 does not match known number of columns (3)
I thought that each entry in the array is a row and not a column. Does anyone have any idea? Any help would be greatly appreciated!
This discussion has been closed.
Replies