Table Initialization error - oColumn is undefined
Table Initialization error - oColumn is undefined
I'm attempting to intialize a datatable with:
oTable = jQuery('#schedule').dataTable();
but I get an error: oColumn is undefined
which happens around here in jquery.datatables.js:
/* If aaSorting is not defined, then we use the first indicator in asSorting */
6790 if ( typeof oInit.aaSorting == "undefined" &&
6791 typeof oSettings.saved_aaSorting == "undefined" )
6792 {
6793 oSettings.aaSorting[i][1] = oColumn.asSorting[0];
6794 }
I have already had a look at this discussion: http://datatables.net/forums/comments.php?DiscussionID=1363 but it is not the same root cause...i.e. I do not have multiple datatables on the same page.
oTable = jQuery('#schedule').dataTable();
but I get an error: oColumn is undefined
which happens around here in jquery.datatables.js:
/* If aaSorting is not defined, then we use the first indicator in asSorting */
6790 if ( typeof oInit.aaSorting == "undefined" &&
6791 typeof oSettings.saved_aaSorting == "undefined" )
6792 {
6793 oSettings.aaSorting[i][1] = oColumn.asSorting[0];
6794 }
I have already had a look at this discussion: http://datatables.net/forums/comments.php?DiscussionID=1363 but it is not the same root cause...i.e. I do not have multiple datatables on the same page.
This discussion has been closed.
Replies
Allan
Here's the table:
Last NameFirst Name
Start DateEnd Date% Time
Delete?
Smith
John
2011-03-15
2011-03-15
100
Allan
i tried using th tag..but still i have the problem ..ie oColumn is undefined..