Select extension and server side processing
Select extension and server side processing
Is the select extension designed to work with the server side processing option? When I page to the next set of results all the rows on that page are selected.
Here is my configuration
var table = $('#example').DataTable( {
ajax: url: '/search/documents',
type : 'POST',
contentType : 'application/json',
dataType : 'json',
accept: 'application/json',
dataSrc: 'data',
data: function ( d ) {
return JSON.stringify( d );
}
},
deferRender: true,
columns: [
{ data: 'name' },
{ data: 'position' },
{ data: 'office' },
{ data: 'extn' },
{ data: 'start_date' },
{ data: 'salary' }
],
rowId: 'extn',
select: true,
serverSide: true,
dom: 'Bfrtip'
} );```
Answers
I have the same problem. Is this extension suitable for server-side processing? I can not find any statement in the documentation regarding this combination.
Maybe someone should create a sub section "Select" in the "Extensions" section of this forum for all posts regarding the "select" extention.
Same problem reported here
http://datatables.net/forums/discussion/29708/select-extension-and-serverside-option-bug
and here
http://datatables.net/forums/discussion/29725/select-in-combination-with-ssp
I think it is safer keep using tableTools extension for now!
I'm experiencing this, too, using DataTables 1.10.8 and Select 1.0.0.