Datatable
Datatable copied to clipboard
new version 1.10.1
since 1.10.1 version some options have change.
for example bServerSide now is serverside
You can just use the new options. I'm using this right now and it works fine:
var table = $('#dtTable').DataTable({
ajaxSource: "url_to_ajax_source",
serverSide: true,
autoWidth: false,
paging: true,
pageLength: 25,
pagingType: "full_numbers"
});
Also having this issue. Tried using new options but did not work.
Although datatables fortunately provide backwards compatibility for 1.10.x, it would be great if this package could be updated to handle the new parameters. E.g. using "ajax" instead of "ajaxSource" passes an entirely new data structure (below) that is currently unable to be parsed correctly for the most part.
_ 1413316200419
columns[0][data] 0
columns[0][name]
columns[0][orderable] false
columns[0][search][regex] false
columns[0][search][value]
columns[0][searchable] true
columns[1][data] 1
columns[1][name]
columns[1][orderable] true
columns[1][search][regex] false
columns[1][search][value]
columns[1][searchable] true
draw 1
length 25
order[0][column] 1
order[0][dir] desc
search[regex] false
search[value]
start 0
I will do this for version 3.x I will start prototyping today to see if everything works out so far.