Use column grouping without building DOM. Is it possible?

Use column grouping without building DOM. Is it possible?

mkoryakmkoryak Posts: 14Questions: 0Answers: 0
edited August 2012 in DataTables 1.9
Is it possible to create a table that looks like this: http://datatables.net/examples/advanced_init/complex_header.html but without building the DOM for it first?

All of my table data is in JSON and i really like allowing datatables to create its table for me instead of me doing any dom work.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    You mean you want to define the [row|col]span in the JSON? The answer, at the moment, is no - this is not an ability that DataTables has. However, you can easily make the Ajax request yourself, built the HTML table and then initialise DataTables on it - that will give you complete control over the header.

    Allan
This discussion has been closed.