DataTables serverside processing library and concatenating fields
DataTables serverside processing library and concatenating fields
Okay, So we're working with the default server side library and we need to display several datafields client side as one. How would we go about doing that? I've tried using the render function, It doesn't seem to work the other two fields called with row just end up as undefined. WE're using row.element format. Do we need to use row['element'] format? Or is there something we can do with the server side library that can bypass that?
This question has an accepted answers - jump to answer
Answers
If the data is returned in the JSON response you should be able to access it. You can try
console.log(row);
within the render function to see what you have. If you are unable to figure out how to use the data from that then please post your Datatables init code and the JSON response.Kevin
okay, thanks. I'll let you know the results.
--Edit--
Yeah it worked. Row was returning with numerical values