Can mData read a pure string rather than dotted notation?

Can mData read a pure string rather than dotted notation?

feverfever Posts: 3Questions: 0Answers: 0
edited August 2013 in General
My column name contains dotted notation e.g. "mData": "0.8Hz" and it cannot read into the datatable. How can I force "mData" to read it as a pure string rather than a dotted notation? I cannot really change the column name of in the database. Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    If you are willing to try DataTables 1.10 (which is pre-beta, but quite stable - I'm just working on the updated examples and documentation), it has the ability to work with data in this format. You would simply escape the `.` as `\.` - so in this case: `mData: "0\.8Hz"` .

    1.10 wip is available here: https://github.com/DataTables/DataTables/tree/1_10_wip/media/js

    Allan
  • feverfever Posts: 3Questions: 0Answers: 0
    Thanks Allan, I am happy you included this functionality in 1.10. I will try later.
This discussion has been closed.