FixedColumns with KeyTable: Select not working

FixedColumns with KeyTable: Select not working

binexlinebinexline Posts: 27Questions: 10Answers: 0
edited January 2021 in Free community support

Hello,

I have a DataTable with FixedColumns, Select, and KeyTable, but when I click on the fixed column part the row doesn't get selected, but when I double click, then the row is selected.

Example: http://live.datatables.net/mizowaqe/4/edit?html,js,output

How can I select the whole row with just one click on the fixed column side..? Please help

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin
    Answer ✓

    It looks like there is a conflict there - thanks for pointing that out, I’ll look into it. However, I would note that the click is currently doing two different things which I think will be confusing, even if it were working properly. It is toggling the select on the row and also using KeyTable for focus. So if you click on a cell it will select the row (if working) and then click on the adjacent cell it would deselect the row, which would be properly confusing.

    I’d suggest having a dedicated column for the row selection which KeyTable would not be active on.

    Allan

This discussion has been closed.