Get count of selected cells

Get count of selected cells

jvcunhajvcunha Posts: 81Questions: 10Answers: 1
edited October 2016 in Free community support

In the example https://datatables.net/extensions/select/examples/initialisation/cells.html, when a cell selects and deselects the amount is shown ( 2 cells selected ) .
In the example does not show how to do this.
How do I do that in click cell (not button)?
See http://imgur.com/1mDCBRt

Replies

  • allanallan Posts: 61,683Questions: 1Answers: 10,099 Site admin

    It is done automatically by Select. If that isn't working for you, please link to a test page showing the issue so we can help to debug it.

    Allan

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1
    edited October 2016

    Hi Allan, send link to private

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1

    I believe that something is missing in my DOM

  • allanallan Posts: 61,683Questions: 1Answers: 10,099 Site admin

    I didn't receive a PM with a link to the page I'm afraid.

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1

    Allan, just sent. Verify please

  • allanallan Posts: 61,683Questions: 1Answers: 10,099 Site admin

    Nope - no PM from you I'm afraid. Click my name above and then click the "Send message" button.

    Allan

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1

    Now sent ...

  • allanallan Posts: 61,683Questions: 1Answers: 10,099 Site admin

    Thanks! Could you remove TableTools from your page please? Both the tableTools object in the DataTable initialisation and the T option in the sDom parameter.

    It looks like both TableTools and Select are being used for row selection and TableTools is "winning".

    TableTools is legacy software and shouldn't be used for new projects.

    Thanks,
    Allan

  • jvcunhajvcunha Posts: 81Questions: 10Answers: 1

    Thanks Allan!

This discussion has been closed.