datatables row select

datatables row select

YebachYebach Posts: 4Questions: 2Answers: 0
edited July 2014 in Free community support

Hello
I am using datatables together with web2py.
When I try to use row select, i can only select every other row if I use this code http://datatables.net/examples/api/select_row.html

Or I can select every other row and only first column of row in between if I add sRowSelect: "os", in tableTools

Any suggestions???
EDIT: Actually it is selected if I use the first example but it is not colored. Why?

Thank you

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Every other row suggests to me that actually every row can be selected, but visually only every second row is shown as selected due to a CSS conflict.

    Allan

  • YebachYebach Posts: 4Questions: 2Answers: 0

    How to manage that. I mean CSS conflict?

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    The example you linked to is working. So you need to establish what is different in your own version.

  • savannakingsavannaking Posts: 7Questions: 3Answers: 0

    This happened to me. If you have the table-striped class on your table, you get this behavior. Removing the striping fixes it.

This discussion has been closed.