Ajax Source: number of rows and columns got switched

Ajax Source: number of rows and columns got switched

heinzheinz Posts: 2Questions: 0Answers: 0
edited August 2012 in General
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!

Replies

  • heinzheinz Posts: 2Questions: 0Answers: 0
    Sorry, I mean, it detects the size of the data correctly! But wy does it say that the number of columns would be 3 ?
This discussion has been closed.