Group datatable by multiple colum

Group datatable by multiple colum

niravathpintuniravathpintu Posts: 3Questions: 2Answers: 0

I want to group by two columns in datatable. is it possible.

I have visited these link, but in that only one column can be grouped
https://datatables.net/examples/advanced_init/row_grouping.html
https://datatables.net/blog/2017-04-07

Answers

  • niravathpintuniravathpintu Posts: 3Questions: 2Answers: 0

    I have attached a sample also

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @niravathpintu ,

    You can use order to define the initial order (the second example there show multi-column ordering), or you can use the API for post-initialisation order with order(),

    Cheers,

    Colin

This discussion has been closed.