warning message : DataTables warning: table id= Requested unknown parameter '1' for
warning message : DataTables warning: table id= Requested unknown parameter '1' for
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
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
can you check what is the problem please
here is the sample page
http://test.ypialukhuwah.com/tes
thanks
The problem is you have
colspan
in yourtbody
. This is in the second row:<td colspan="12" class="hiddenRow"><div class="accordian-body collapse demo1">
Datatables doesn't support having
colspan
orrowspan
in thetbody
. This is why you are getting this message regarding the second row: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