Hide sort icon

Hide sort icon

GirishGirish Posts: 6Questions: 2Answers: 0
edited March 2013 in General
Hi,
Is there any way yo hide the sort icon from a particular column?
I am using the datatables for displaying the list of users. the last col of the table will be the actions to be performed on the record. This col is obviously not sortable. So I set the col "bSortable": false. But the sort icon still visible in the table header. Is there any way to hide the icon here..?

Thanks,
Girish

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    > So I set the col "bSortable": false. But the sort icon still visible in the table header.

    That shouldn't happen, and it doesn't in this example: http://live.datatables.net/ixegal/edit#javascript,html

    Please link to a test case where it is in error.

    Allan
  • GirishGirish Posts: 6Questions: 2Answers: 0
    Thanks for the replay,
    I am importing these css:
    @import "../css/demo_table.css";
    @import "../css/datatable_style.css";
    @import "../css/jquery.contextmenu.css";
    @import "../css/theme.blue.css";

    There may be some missing classes.

    Anyway, adding the bellow code block did the magic.
    .sorting_disabled
    {
    background-image:none !important;
    }



    Thanks,
    Girish
This discussion has been closed.