jQuery DataTables render column data
Turns out that using name.Full Name
will not work. It has to be name.FullName
without the space. Here is what ended up working for me.
'columns': [
{
"data": "name",
"render": function ( data, type, row ) {
if(type === 'display'){
return '<span id="'+data.ID+'">'+data.FullName+'</span>';
}else if(type === 'sort'){
return data.LastName;
}else{
return data;
}
}
}
]