Cells with subrows + sorting

Cells with subrows + sorting

heinrich123heinrich123 Posts: 2Questions: 0Answers: 0
edited August 2012 in General
Hello,

is it possible to create a table like in the following screenshot: http://www.wertpapier-forum.de/uploads/post-2019-1154935103.png ?
The main difference to a "default" DataTables configuration is, that there are multiple (sub)rows in each cell. If a specific header subrow is clicked, the table is sorted accordingly.

Is this supported with some configuration? If not, any ideas for tweak?

Thanks!

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Currently no(*). The long term plan for DataTables is to provide the ability through these of multiple TBODY elements, but I'm afraid that is probably a good way into the future, as there are a number of other items to be developed first: http://datatables.net/development/roadmap

    Allan

    (*) - Actually yes it is possible, you can use aaSortingFixed and a hidden grouping column to provide this functionality - but it isn't a 'first class' feature of DataTables that is trivial to use - for example filtering can get complicated - remove one of the child rows with a filter and the other two should also go, which would require a custom filtering module.
  • heinrich123heinrich123 Posts: 2Questions: 0Answers: 0
    Thanks! So, I'll have to start getting into the code a little bit ...
This discussion has been closed.