can't not sort

can't not sort

david.carnley@gmail.david.carnley@gmail. Posts: 1Questions: 0Answers: 0
edited November 2010 in General
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

Replies

  • chadstratchadstrat Posts: 4Questions: 0Answers: 0
    having the same issue specific to FireFox 3.6.8
  • elite-robelite-rob Posts: 26Questions: 0Answers: 0
    edited December 2010
    I am also having issues with sorting. I think I may have found a bug in 1.7.4.

    You can see my thread here: http://datatables.net/forums/comments.php?DiscussionID=3573&page=1
  • 28.vivek.s28.vivek.s Posts: 69Questions: 0Answers: 0
    edited December 2010
    hi guys,

    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
  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    @david.carnley@gmail - can you give us a link to an example of this please? Alternative the initialisation code and the table would be useful.

    Allan
This discussion has been closed.