how to select row on right click?

how to select row on right click?

johnny83johnny83 Posts: 3Questions: 2Answers: 0

Hello! The select plugin is great. when I use select: true it selects the row when click on it. I need same action on right click. Also need to get the row id on right/left click? Could you please help me to do this?


  • onurkulekcionurkulekci Posts: 1Questions: 0Answers: 0

    you can do with the mousedown event

    Table = $("#exampletable ").DataTable({});

    $('#exampletable tbody').on('mousedown', 'tr', function () {

    exampletable .$('tr.selected').removeClass('selected');


Sign In or Register to comment.