Problem for Sigle row selection with fixed columns

Problem for Sigle row selection with fixed columns

Yves HEBERTYves HEBERT Posts: 10Questions: 4Answers: 0

I want to use the single selection in a datatable with fixed columns. The data come from an ajax request.
The selected line is not marked on the fixed columns if I click in a non-fixed column.
And if I click on a fixed column, the selection is multiple (only on fixed columns).

How to fix this bug?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,686Questions: 1Answers: 10,100 Site admin
    Answer ✓

    To confirm, is this what you are seeing: http://live.datatables.net/qovihuci/2/edit?

    Allan

  • allanallan Posts: 61,686Questions: 1Answers: 10,100 Site admin

    When I posted my example before it was using an old version of DataTables. I've just updated it to use the current release and it appears to be working as I'd expect.

    Allan

  • Yves HEBERTYves HEBERT Posts: 10Questions: 4Answers: 0
    edited August 2019

    Thank you for your reply.
    I'm using last version

  • Yves HEBERTYves HEBERT Posts: 10Questions: 4Answers: 0

    Thank you for your reply.
    I use 2 columns =>
    fixes_ {leftColumns_2, heightMatch_ 'none'}
    Looking at your example, I determined that I was missing
    select: {style: 'single'}
    My problem is solved now. thank you so much

This discussion has been closed.