Preventing sort on a specific column header

Preventing sort on a specific column header

dharricdharric Posts: 17Questions: 0Answers: 0
edited July 2011 in General
Hello I have a datatable that has several columns in it. I would like to disable sorting or any other datatable related action on that header item. I've tried using aoColumns set to null for that column, but I don't think this is designed to do it as it does not work. Also I have a multitab web page. Currently when clicking this column's header there is an error "object does not support this property or method". But it does not make sense as the error occurs on a completely unrelated anchor tag. My anchor tag has a name of anchortab5 and an href of #, as it is acting simply as a trigger for some unrelated javascript.

Replies

  • dharricdharric Posts: 17Questions: 0Answers: 0
    edited July 2011
    Sorry I found the bSortable property off of aoColumns and tried it, but it still fails for me with the previous exception. So I guess I have some other issue.
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    With multi-tab pages, you need to make sure you aren't including jquery or datatables js files more than once. you'll clobber any other files you loaded previously, and all their settings.

    I suspect you have a call to include jquery in one of your tabs that destroys the initial jquery object.
This discussion has been closed.