Uncaught TypeError: Cannot read property 'aoColumns' of null

Uncaught TypeError: Cannot read property 'aoColumns' of null

angelsanchezangelsanchez Posts: 2Questions: 0Answers: 0
edited March 2013 in Plug-ins
hello
i'm using jquery datatables plugin fixedColumns and i'm trying leave fixed three columns at left, i'm using a table that have a number of dynamic columns and this table filled with data of side of server in asp.net and when reload page appear a error like this..

"Uncaught TypeError: Cannot read property 'aoColumns' of null "

Can you help me please???


i left part of code below

function fnFixedColumnsDatatables() {
var oTable = $('.dataTable').dataTable({
"bJQueryUI": true,
"sScrollX": "100%",
"sScrollXInner": "150%",
"bScrollCollapse": true,
"oLanguage": { "sUrl": "Scripts/jquery.dataTables-ES.txt" },
"sPaginationType": "full_numbers",
"aoColumns": [ null ],
"sDom": '<"H"Tfrl>t<"F"ip>',
"oTableTools": {
"sRowSelect": "multi",
"sSwfPath": "Scripts/copy_csv_xls_pdf.swf",
"aButtons": [{ "sExtends": "copy", "bSelectedOnly": "true" }, "xls", "csv", "pdf"]
}
});
new FixedColumns(oTable, {
"iLeftColumns": 3,
"iLeftWidth": 350
});




<%#Container.DataItemIndex + 1%>

Replies

  • slamslam Posts: 2Questions: 0Answers: 0
    Maybe you need to delete this line from your code:
    [code]"aoColumns": [ null ],[/code]
  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    @angelsanchez - Link to a test case so we can help: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
This discussion has been closed.