DataTables seems to treat dots (.
) as a special character and doesn't display the columns, which have them in the header.
Is there any solution how to keep the dots and use some sort of escape character?
The error is: Requested unknown parameter 'Doc.' for row 0, column 0
My JSON DataTable initializer:
{
"columns": [
{
"data": "Doc.",
"title": "Doc."
},
{
"data": "Order no.",
"title": "Order no."
}
],
"data": [
{
"Doc.": "564251422",
"Order no.": "56421"
},
{
"Doc.": "546546545",
"Order no.": "98745"
}
]
}
title
. However whendata
option is a string, dots.
are treated the special way, see documentation for more details. Solution is to avoid using dots indata
attribute. – Ogilvie