fnPreRowSelect does not work with DataTable 10 ?

fnPreRowSelect does not work with DataTable 10 ?

erwin16erwin16 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 ...

Answers

  • allanallan Posts: 63,753Questions: 1Answers: 10,509 Site admin

    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

  • erwin16erwin16 Posts: 14Questions: 5Answers: 1

    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 ...

  • allanallan Posts: 63,753Questions: 1Answers: 10,509 Site admin

    Oh I see - thanks for the clarification. Yes, that is possible with Select - use the select.items option - see this example.

    Allan

This discussion has been closed.