Disable sorting for certain rows

Disable sorting for certain rows

kkudikkudi Posts: 77Questions: 0Answers: 0
edited June 2010 in General
Is there a way to disable sorting for certain rows without using the details feature with fnOpen/fnClose?
I have searched through the forums and the only thing I could find is by using fnOpen/fnClose.

Something like all rows with class disable_sorting should not be sorted or something.

Thanks

Andreas

Replies

  • datatablesn00bdatatablesn00b Posts: 7Questions: 0Answers: 0
    http://www.datatables.net/usage/features
    bSort
    "Enable or disable sorting of columns. Sorting of individual columns can be disabled by the "bSortable" option for each column"

    Are you sure you need to disable sorting ROWS and not COLUMNS?
  • kkudikkudi Posts: 77Questions: 0Answers: 0
    I'm pretty sure I wan't to disable certain rows from being sorted and not columns.

    Regards
    Andreas
  • datatablesn00bdatatablesn00b Posts: 7Questions: 0Answers: 0
    No, there is no easy way. Sorting is done on columns and that sorts all rows.
This discussion has been closed.