nCell is undefined

nCell is undefined

anjibmananjibman Posts: 115Questions: 10Answers: 0
edited March 2012 in General
Hi All,

I have following DataTable initialization code
[code]
$(document).ready(function(){
var oTable = $('#agentListTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumnDefs": [
{ "bVisible": false, "aTargets": [6, 7, 8, 9, 10] }
{ "bSortable": false, "aTargets": [0, 9, 10] },
{ "bSearchable": false, "aTargets": [0, 9, 10] }
],
"bStateSave": true,
"fnStateSave": function (oSettings, oData) {
localStorage.setItem( 'DataTables_'+window.location.pathname, JSON.stringify(oData) );
},
"fnStateLoad": function (oSettings) {
return JSON.parse( localStorage.getItem('DataTables_'+window.location.pathname) );
}
});
});
[/code]

I am using DataTable 1.9.0 with jQuery 1.7.1
I have following error nCell is undefined and following message from debug
Requested unknown parameter '8' from the data source for row 0

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Can you use the debugger please: http://datatables.net/faqs#unknown_parameter ?

    Allan
This discussion has been closed.