search & select all bug

search & select all bug

piotr_tokarczykpiotr_tokarczyk Posts: 2Questions: 0Answers: 0
edited May 2012 in Bug reports
Hi,
http://datatables.net/release-datatables/extras/TableTools/select_multi.html
try to type "camino" in search box, then click on "Select all", then remove text from search box.
As you can see all rows are selected. Only two rows should be selected.

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Not really a bug since it is designed to work this way :-). As the documentation notes: "Select all rows in the table". However, I agree that this isn't always desirable behaviour and there should be an option to select only on the filtered rows. Currently there isn't a built in way to do that, but I will look at adding it for a future release of TableTools.

    Until then I'd suggest using the fnSelect ( http://datatables.net/extras/tabletools/api#fnSelect ) API method on the rows that you want to select (which can be obtained with the DataTables $ API method).

    Allan
This discussion has been closed.