alternate Different rows in datatable
alternate Different rows in datatable
harmanjot singh
Posts: 1Questions: 1Answers: 0
in DataTables
i am using datatable to show api data coming from the ajax call. and now what i am trying to achieve is like my first row will have 7 colunms and in second row it will be different data having only four colunms with their width increased. like second cell will cover 3 colunms width.
Answers
You can use child rows for that, and have them automatically open when the page is drawn. The only downside is that child rows, as they're not part of the main table, aren't searchable.
Colin