How to build complex table with colspan and rowspan

How to build complex table with colspan and rowspan

dathtitdathtit Posts: 7Questions: 0Answers: 0
edited August 2013 in General
Hi all!
I've just started using datatable for a few days and now I have this problem.
I must build a table with structure like this
http://farm3.staticflickr.com/2870/9514796482_2f992db850_o.jpg
And I want to use ajax to load dynamic data.
I've search through the example page and I only find example of colspan on existing DOM table.
I've tried to build DOM table as well but I don't know how to build empty table and efficiently pass ajax data to that.
So have anyone met this problem ? Can I build this table with aoColumn and aoColumnDefs ? Or can I build an empty DOM table and pass data to it ?
Thanks for all your helps

Replies

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    You need to create the DOM header with colspan / rowspan yourself. DataTables won't do that. Standard jQuery / DOM methods should do it.

    Allan
  • dathtitdathtit Posts: 7Questions: 0Answers: 0
    Thank Allan! I figured it out.
    Just want to say this plugin is great and it have the best support ever
  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    Thanks very much :-)

    Great to hear that you got what you needed working.

    Allan
This discussion has been closed.