How to add a custom row after each row

How to add a custom row after each row

jojofrancejojofrance Posts: 2Questions: 1Answers: 0

Hi everybody,

I have a question about adding row.

In my datatable, i would like to add a new custom row after each row. The new (custom) row has different cells. In my case, each row displays order summary, and each new row added is for order details.

I tried to using row.add method in the createdRow callback function, but i found that the added row should consist the same cells structure. I tried also jquery in the createdRow callback function, ex: $('table#list_order tbody').append('<tr><td>example</td></tr>'); But it does not work.

I don't know how to do it correctly, please suggest.

Thanks very much

jojo

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.