how to delete 2 column of table with no error " Requested unknown parameter"

how to delete 2 column of table with no error " Requested unknown parameter"

labourlabour Posts: 2Questions: 1Answers: 0

hi i want to reduce number of columns of table from 5 column to 3 column...but when i delete two columns an erorr happens to me and says

localhost says : DataTables warning: table id=data-table - Requested unknown parameter '3' for row 1. For more information about this error, please see http://datatables.net/tn/4

do you know how can i fix this error?

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Likely you have a columns array in the DataTables initialisation defining five columns. Or your table header still has five cells.

    Its impossible to say more without a test case though. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Allan

  • labourlabour Posts: 2Questions: 1Answers: 0

    ok thanks ill do as you said

This discussion has been closed.