warning message : DataTables warning: table id= Requested unknown parameter '1' for

warning message : DataTables warning: table id= Requested unknown parameter '1' for

harisnizhomharisnizhom Posts: 2Questions: 1Answers: 0

hello,

I'm trying to insert a detail table in DataTables, but datatables alert me with this message, every time i reload the webpage

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

and i don't think there's something wrong with the table result. the table still load the data completely.

oya, i also try to ignore the warning message using
$.fn.dataTable.ext.errMode = 'none';

but it not working properly in sorting, filtering, column visibility

Thanks

Answers

  • kthorngrenkthorngren Posts: 21,304Questions: 26Answers: 4,947

    ITs hard to say without seeing it running. Can you post a link to your page or a test case replicating the issue?
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Did you follow the troubleshooting steps in the link?
    http://datatables.net/tn/4

    There is something in row 3 that is not matching up with your Datatables config.

    Kevin

  • harisnizhomharisnizhom Posts: 2Questions: 1Answers: 0

    can you check what is the problem please

    here is the sample page
    http://test.ypialukhuwah.com/tes

    thanks

  • kthorngrenkthorngren Posts: 21,304Questions: 26Answers: 4,947
    edited January 2019

    The problem is you have colspan in your tbody. This is in the second row:
    <td colspan="12" class="hiddenRow"><div class="accordian-body collapse demo1">

    Datatables doesn't support having colspan or rowspan in the tbody. This is why you are getting this message regarding the second row:

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

    Datatables is not finding the second column (parameter 1) in the second row (row 1).

    Please let us know what you are trying to accomplish with the colspan. Maybe we can provide a Datatables supported way to meet your requirements.

    Kevin

This discussion has been closed.