sType is simply not working, other options such as sWidth and sClass work just fine...

sType is simply not working, other options such as sWidth and sClass work just fine...

wadeowadeo Posts: 2Questions: 0Answers: 0
edited November 2011 in General
****This issue is resolved, the column that I was testing had the same value so sorting naturally would not happen.. lol****

I'm having a problem with making any of the sType functional. When I add in the option for sType this will render the column not sortable when clicking in the header.

[code]
$('#div-datagrid table').dataTable({
"aoColumns": [
{ "sWidth": "33%", "sClass": "center" },
{ "sType":"num-html", "sWidth": "33%", "sClass": "center" },
{ "sWidth": "33%", "sClass": "center" }
],
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"aaSorting": [[1, "asc"]]
});
[/code]

I have all the plugins that will be used called from the bottom of the jquery.dataTables.js script.

I have placed a alert in the num-html-asc function and it seems to be running through the function when called once for each row in the table.

This sType function is being called but why is it not working?

The data it is trying to sort is coming from a ASP data grid, each value is wrapped in a span.
[code]
2005
[/code]

Any help on this would be great as it is driving me nuts...
This discussion has been closed.