can't not sort
can't not sort
david.carnley@gmail.
Posts: 1Questions: 0Answers: 0
I'm getting oColumn is undefined in the initialization of the table.
I can see my html table has thead and tbody etc.
I set "bSort" : false
but it still fails trying to setup initial default sorting.
I also tried setting some initial sort columns but it still had oSettings.aoColumns null so it fails...
help!
thanks!
david
I can see my html table has thead and tbody etc.
I set "bSort" : false
but it still fails trying to setup initial default sorting.
I also tried setting some initial sort columns but it still had oSettings.aoColumns null so it fails...
help!
thanks!
david
This discussion has been closed.
Replies
You can see my thread here: http://datatables.net/forums/comments.php?DiscussionID=3573&page=1
While defining your table in document.ready..you can specify the sorting type.....for ex...
it can be date wise or string or..etc...try something like this...
[code]
$(document).ready(function() {
oTable = jQuery('#CacheSearchResultsTable').dataTable(
"aoColumns": [
{ "sType": "html" },
null,
{ "sType": "date"},
]
});
[/code]
Refer this link http://datatables.net/plug-ins/sorting
Thanks,
Vivek
Allan