"Requested unknown parameter" when colspan is used

"Requested unknown parameter" when colspan is used

Jeff AJeff A Posts: 50Questions: 8Answers: 0

Im getting the "Requested unknown parameter" warning because my table has a row which uses colspan. See attached image.
<tr class="t2_tr">
<td colspan="15" class="t2_hc_line table-header-lines">Cold War Kids - First</td>
</tr>
Is there a setting I can use to avoid this warning?

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓

    colspan (and rowspan) in the tbody are not supported by DataTables.

  • Jeff AJeff A Posts: 50Questions: 8Answers: 0

    that's a shame. so there is no workaround?

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    I don't think so; but you could try a forum search, I know there have been other posts about this.

  • Jeff AJeff A Posts: 50Questions: 8Answers: 0

    Perhaps I could use javascript/jquery to remove the colspan attribute for that row..

    Thanks again for such quick response.

    Jeff

  • Jeff AJeff A Posts: 50Questions: 8Answers: 0

    Perhaps they could add a property for future to ignore rows with colspans.

  • allanallan Posts: 63,851Questions: 1Answers: 10,519 Site admin

    @tangerine is correct - colspan and rowspan are not supported in the tbody of a DataTable at this time. They add a lot of complexity. It is something i would like to add in future, but I don't think it will be any time soon.

    Allan

This discussion has been closed.