serverSide: true , how to put table two fields in one html table td
serverSide: true , how to put table two fields in one html table td
Link to test case: https://datatables.net/examples/advanced_init/events_live.html
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: How to put Position and Name in one cell?
My real case, as follows
$('#myTable').DataTable({
serverSide: true,
columns: [
{ data: "Code1", title: "Code1", className: "text-center", width: '110px' },
{ data: "Code2", title: "Code2", className: "text-center", width: '110px' },
...
Need to combine Code1 and Code1 in one cell
This question has an accepted answers - jump to answer
Answers
You can use
columns.render
to achieve that, see example here,Colin