cursor changes though sorting is disabled

cursor changes though sorting is disabled

SruthiSruthi Posts: 2Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi,

I have used datatables in my application. I donot want the sorting functionality to be enabled in these. I have created a table with class 'display'.
In jquery, I have used the below lines of code:
"bSort": false,
"aaSorting": [],

Also, in the datatable class i.e., demo_table.css I have altered the style as below:
table.display thead th {
padding: 3px 18px 3px 10px;
border-bottom: 1px solid black;
font-weight: bold;
cursor : pointer,
/*cursor: hand;/ /*commented the below line and added this line - for not changing the cursor*/
}
But still, when I hover the header of datatable, the cursor changes to hand. Can anyone please help me in this.

thanks,
Sruthi

Replies

  • allanallan Posts: 63,394Questions: 1Answers: 10,451 Site admin
    edited October 2012
    Yup - bug in the DataTables CSS. If you look where I apply `cursor: pointer;` you could alter that to make it more selective.

    Allan
  • psinghpsingh Posts: 1Questions: 0Answers: 0
    Can you provide a little more help? I am trying to figure out if I need to do this in my code or I need to change the datatable code.

    Thanks
    Pawan
  • allanallan Posts: 63,394Questions: 1Answers: 10,451 Site admin
    This ( https://github.com/DataTables/DataTables/blob/master/media/css/jquery.dataTables.css#L15 ) should be added only to sortable columns.

    Allan
This discussion has been closed.