fnRowSelected and fnSelectAll

fnRowSelected and fnSelectAll

deathwingdeathwing Posts: 4Questions: 0Answers: 0
edited September 2011 in TableTools
Hi Allan,

I'm using datatables with tabletools and multi-selection enabled.
I just noticed that the fnRowSelected event doesn't fire after calling fnSelectAll.
Deselection works as i would expect it to: Calling fnSelectNone fires the fnRowDeselected event for every row which got deselected.

Is that a bug or desired behavior?
If that is desired: wtf? ;)

I bet you hear that a lot, but you did a great job creating datatables - thank you for that :)

Replies

  • allanallan Posts: 61,449Questions: 1Answers: 10,055 Site admin
    That sure does sound like a bug! Can I just check that you are using the current TableTools nightly ( http://datatables.net/download ). I think I might have fixed this already - but if not, it is certainly something that needs fixed!

    Allan
  • deathwingdeathwing Posts: 4Questions: 0Answers: 0
    Ok, I was using DataTables 1.8.0 and TableTools 2.0.1.
    Now I just tried DataTables 1.8.2 and TableTools 2.0.2.dev

    Seems like you have changed the behavior: Both events get fired correctly, but when using fnSelectAll or fnSelectNone the event just fires once and the node argument of the callback is null.

    That's ok, thank you :)
This discussion has been closed.