getting all rows data from data table is not working when i assign data to table at client side
getting all rows data from data table is not working when i assign data to table at client side
raji.godugula@gmail.com
Posts: 5Questions: 4Answers: 0
When i assign data to data table at server side and try to get data using table.rows().data().toArray(); i am getting data in a array with key and value both. But when i assign data at client side in HTML file and when i use table.rows().data().toArray() to get data to array, it is only shoing value not Key. key is coming a undefined. Please guide me on that?
table.rows().data().toArray();
This discussion has been closed.
Answers
My guess is your data structures (objects versus arrays) is different between the two tables. For more info:
https://datatables.net/manual/data/#Data-source-types
If this doesn't help then post your Datatables init code for each table so we can see your data structures.
Kevin