How to access extra parameters passed through Ajax in rowcallback function?

How to access extra parameters passed through Ajax in rowcallback function?

kevmorkevmor Posts: 4Questions: 3Answers: 0

I've modified the DataTables ajax source to include a few extra columns for each row, however I don't want to use these as regular columns. What I'm trying to accomplish is display icons in one of the DataTable columns depending on the results of these extra columns for each row.

I have a rowcallback function but how can I access the other data returned via ajax? The data parameter only shows me the regular columns that are displaying, not the additional ajax data I've added?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,401Questions: 26Answers: 4,787
    Answer ✓

    You should be able to access all the data elements for each row whether they are in a column or not. For example:
    http://live.datatables.net/titudocu/1/edit

    I removed the salary object from the table but can display it to the console. Is this what you are trying to do?

    Kevin

  • kevmorkevmor Posts: 4Questions: 3Answers: 0

    Thanks! It's working now, had a stupid mistake on my end...

This discussion has been closed.