A wrapper around DataTable's ajax methods that allow synchronization with server-side pagination in a Rails app
MIT License
587
stars
228
forks
source link
@coderawal I have never played with the functionality you're trying to implement, but it looks like you're mixing syntax from 2 different versions of the jQuery plugin in your code sample. #400
@coderawal I have never played with the functionality you're trying to implement, but it looks like you're mixing syntax from 2 different versions of the jQuery plugin in your code sample.
If I recall correctly, jQuery.dataTables version 1.10 uses camelCase for all params and variables, like you have in the lines of: processing, serverSide, ajax, pagingType; while jQuery.dataTables version 1.9 uses hungarian notation for params and variables, like you have in the lines of: oSettings.bSorted, oSettings.aoData, oSettings.aiDisplay.
@coderawal I have never played with the functionality you're trying to implement, but it looks like you're mixing syntax from 2 different versions of the jQuery plugin in your code sample.
If I recall correctly, jQuery.dataTables version 1.10 uses
camelCase
for all params and variables, like you have in the lines of:processing, serverSide, ajax, pagingType
; while jQuery.dataTables version 1.9 uses hungarian notation for params and variables, like you have in the lines of:oSettings.bSorted, oSettings.aoData, oSettings.aiDisplay
.According to the documentation you linked earlier: http://www.datatables.net/examples/api/counter_columns.html, the code is not complicated to implement, once you have the proper values returned.
Originally posted by @antillas21 in https://github.com/jbox-web/ajax-datatables-rails/issues/64#issuecomment-67502991