fnPreRowSelect does not work with DataTable 10 ?
fnPreRowSelect does not work with DataTable 10 ?
erwin16
Posts: 14Questions: 5Answers: 1
"tableTools": {
"fnPreRowSelect": function ( e, nodes ) {
if ( $(e.currentTarget).hasClass('details-control') ) {
return false;
}
return true;
}
}
does not work .. how can I avoid the Sliding child row selector to select the row ...
This discussion has been closed.
Answers
I would suggest trying to use Select rather than TableTools, which has now been retired. Select should not select the child row at all.
Allan
Hi Allan ..
I am using select:true
and effectively the child is not selected...
my question was related to exclude the child sliding selection column ( the one with the 'details-control' class from the cells triggering the row selection...
I don't know if it's possible or if it's not so important for the user's experience ...
Oh I see - thanks for the clarification. Yes, that is possible with Select - use the
select.items
option - see this example.Allan