alternate Different rows in datatable

alternate Different rows in datatable

harmanjot singhharmanjot singh Posts: 1Questions: 1Answers: 0

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

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    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

Sign In or Register to comment.