aoColumns causes a Error: Object does not support this property or method.
aoColumns causes a Error: Object does not support this property or method.
Roszak
Posts: 5Questions: 0Answers: 0
My table sorting works fine other than its doing a string sort and I need to use a numeric sort on my first column. When I add the "aoColumns line below all sorting goes away and I see an IE 7 alert: "Error: Object does not support this property or method"
Any thoughts on what I'm doing wrong?
$("theTable").ready(function() {
$("#theTable").dataTable( {
"sPaginationType" : "full_numbers",
"sDom": '<"top"i>rt<"bottom"flp><"clear">',
"bAutoWidth": false,
"iDisplayLength": 50,
"aoColumns": [
{ "sType": "numeric" }, null, null, null, null ] }
);
} );
Thanks
Any thoughts on what I'm doing wrong?
$("theTable").ready(function() {
$("#theTable").dataTable( {
"sPaginationType" : "full_numbers",
"sDom": '<"top"i>rt<"bottom"flp><"clear">',
"bAutoWidth": false,
"iDisplayLength": 50,
"aoColumns": [
{ "sType": "numeric" }, null, null, null, null ] }
);
} );
Thanks
This discussion has been closed.
Replies
Allan
$("theTable").ready(function() {
$("#theTable").dataTable( {
"sPaginationType" : "full_numbers",
"sDom": '<"top"i>rt<"bottom"flp><"clear">',
"bAutoWidth": false,
"iDisplayLength": 50,
"aoColumns": [
{ null, null, null, null, null ] }
);
} );
Thanks
$("theTable").ready(function() {
$("#theTable").dataTable( {
"sPaginationType" : "full_numbers",
"sDom": '<"top"i>rt<"bottom"flp><"clear">',
"bAutoWidth": false,
"iDisplayLength": 50,
"aoColumns": [
null,null, null, null, null ]
} );
} );