Exlusion of column for selection does not work in responsive dt
Exlusion of column for selection does not work in responsive dt
![XtofAmberg](https://secure.gravatar.com/avatar/e91b62c2413c9ddd2feb56393eaf2c7c/?default=https%3A%2F%2Fvanillicon.com%2Fe91b62c2413c9ddd2feb56393eaf2c7c_200.png&rating=g&size=120)
I cannot get it to work the way I want:
The following test-case is supposed to allow selection via all columns except the first (= 0), which is used for the control of the child row.
https://live.datatables.net/vehekube/3/edit
I used the solution that seems to have worked for others (selector: 'tr td:not(:first-child)'), but it doesn't in my case.
Maybe some dt-master can identify the problem here?
Thank you!
Chris
This question has an accepted answers - jump to answer
Answers
Your
selector: 'td:not(:first-child)'
selector is working as expected. You also have this code:Which is toggling the
selected
class no matter where you click in the row. Commenting out$(this).toggleClass('selected');
fixes the issue:https://live.datatables.net/hetilepa/1/edit
Kevin
Kevin, thank you so much!
You really are a great help!![:) :)](https://datatables.net/forums/resources/emoji/smile.png)
I totally forgot about that...