I can see either Headers or Data but not both FIXED
I can see either Headers or Data but not both FIXED
Got it sorted Thanks.
Hello can anyone point me in the direction of what I am doing wrong.
var MYdata = [{ "ID": 2, "Name": "Bill Smith", "Position": "Manager", "email": "bill@here.co.uk", "ShowName": "William" }];
If I use this code...
data: MYdata,
"columns": [
{ "data": "ID" },
{ "data": "Name" },
{ "data": "Position" },
{ "data": "email" },
{ "data": "ShowName"}
]
My table displays the data but the column headers are blank.
If I use this code...
data: MYdata,
"columns": [
{ "title": "ID" },
{ "title": "Name" },
{ "title": "Position" },
{ "title": "email" },
{ "title": "ShowName"}
]
My table displays the column headers but there are no records displayed.
Thanks
Bill