Problem with two in header

Problem with two in header

aks2621aks2621 Posts: 3Questions: 0Answers: 0
edited March 2014 in DataTables 1.9
Hi
My header is like this












I m using following
var oTable = $('#example').dataTable( {
"bProcessing": false,
"sAjaxSource": url,
"sAjaxDataProp": "abcd",
"bFilter": true,
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "un", "value": "Pan" } );
},"sServerMethod": "POST",

"aoColumns": [
{ "mData": getData },
{ "mData": getData},
{ "mData": getData},
null,null,
{ "mData": getData}
],
}) ;

i m very new to datatable, i m matching 6 columns in my to aoColumns. But i get error in my jquery.dataTables.js at 1831
aLayout[i+k][iColShifted+l] = {
"cell": nCell,
"unique": bUnique //at this line (error says cannot convert undefined to object)
};

Please advice how to map columns in the scenario of two .
thanks in advance
ak

Replies

  • aks2621aks2621 Posts: 3Questions: 0Answers: 0
    Because of error, i m not getting the data ..if i say ,use one with six columns, the data comes perfectly...please advice..
  • aks2621aks2621 Posts: 3Questions: 0Answers: 0
    Hi
    I used the datatable debugger and the reference number is uforof
    Please advice. I am very new to all this.
  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    DataTables requires that there be one unique column header for each column - i.e. a cell without colspan. This is because it needs to be able to address each column individually for sorting, filtering, etc.

    Allan
This discussion has been closed.