SelectAll error
SelectAll error

Hello everyone
I have a problem.
I put the button selectAll, on my datatable
buttons: [
'selectAll',
'selectNone'
]
I have 20 rows but the length is 10. If i press SelectAll if I looping selected rows
table.rows({selected: true}).every()
I see only 10 index but the
table.rows({selected: true}).indexes().length
is 20
But if i go to page 2 and back to page 1 the
table.rows({selected: true}).every()
is 20
Any idea?
Stefano
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you using Server Side Processing?
What you are doing seems to work here:
http://live.datatables.net/bamuguwa/1/edit
If you are using server side processing then the behavior you describe seems accurate since only the rows being displayed are in the client and "selectable". If not then please update the example to replicate your issue.
Kevin
thank you for your answer,
the process is client-side, if I run you example I see all selected row in Array.
But I using this way to select all rows after a click on other button in the page
Hi @flanderboy ,
I don't quite follow. Would you be able to modify Kevin's example to demonstrate the issue, please.
Cheers,
Colin