DataTables serverside processing library and concatenating fields

DataTables serverside processing library and concatenating fields

wbyerswbyers Posts: 48Questions: 12Answers: 1

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

  • kthorngrenkthorngren Posts: 20,277Questions: 26Answers: 4,765
    Answer ✓

    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

  • wbyerswbyers Posts: 48Questions: 12Answers: 1
    edited February 2018

    okay, thanks. I'll let you know the results.

    --Edit--
    Yeah it worked. Row was returning with numerical values

This discussion has been closed.