Split row of DataTable

Split row of DataTable

Monu_MehraMonu_Mehra Posts: 2Questions: 1Answers: 0

Dear Team,
I want to know how to split my single row into two row only for represntation. i did this adding one row in for loop while filling to datatable.but by doing this my datatable responsiveness being lost and even paging and searh as well.
kindly see the my requirement in attached imgae

Answers

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

    Hi @Monu_Mehra ,

    You could look at child rows. that might fit the bill.

    Cheers,

    Colin

  • Monu_MehraMonu_Mehra Posts: 2Questions: 1Answers: 0

    Hi @colin ,
    Thanks for reply but that doesn't fit to my requirement. I only want to show my data as for representation which i already did this by html rowspan and colspan.
    but after this my reponsiveness was lost like pager and search.and whole records are showing in my page.
    So kindly look into this by my image.

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    The Installation docs state this:

    Please also note that while DataTables supports colspan and rowspan in the table's header and footer, they are not supported in the table's tbody and must not be present.

    With rowscpan and colspan in your table Responsive and probably other Datatables features won't work properly.

    If you want to group data by a certain column then maybe the RowGroup extension will fit your need.

    Kevin

This discussion has been closed.