Disconnecting a DataTable column from Server-side updates
Disconnecting a DataTable column from Server-side updates
I have a DataTable which is connected to an Editor instance and so is updated from the Server-Side.
To my columns I added an extra collumn - '#' - which is not a DB field but is calculated according to the row number.
columns: [
{ title: "#"},
{ title: "field1",data: "mea_report.remark" },
{ title: "field2",data: "mea_report.id },
How do I make sure that this column is disconnected from the DB and does not try to update or be updated by it ?
Cause right now I get a DataTables warning when the table loads - www.datatables.net/tn/4
Thanks
Yaron
This question has an accepted answers - jump to answer
Answers
Hi Yaron,
Set the
columns.data
property to benull
if the data for the column isn't in the JSON data source. You'll probably need to usecolumns.render
to populate the column's cells with data.Allan