when i set responsive: true, ajax request call twice when the page load for the first time.
But when i set it to false, it call once.
how to resolve it?
Its a bug in the 2.2.0 version of Responsive I'm afraid. Using the nightly version will resolve it until the next release. I'll tag it soon as this is coming up quite frequently.
@allan How can I install nightly version via NPM? I tried github:DataTables/Dist-DataTables-Responsive-Bootstrap but this issue is still not fixed.
You'll also need https://github.com/DataTables/Dist-DataTables-Responsive since that is where the fix was. The Bootstrap styling one depends upon datatables.net-responsive, so it it currently probably pulling in 2.2.0 release.
This is the fix in that dist repo.
I had the same problem, I mean Ajax request was called twice. Also, for the second call, the displayStart value was lost (it always passed 0 even if for the first round displayStart was not equals to 0). Using the nightly version the problem does not raise anymore. Good. Do you know when this nightly version will be released? Many thanks. Antonio
Responsive 2.2.1 is already available.
Hi Allan, thank you very much for your effort.
Could it be, that you by accident forgotten to tag it for bower? It seems via bower is only 2.2.0 available.
Its tagged here, and I think bower just used the semver tags. What bower package are you installing?
I have this in my bower.json:
But when I use 2.2.1, Visual Studio (which seems to use standard bower I think) complains:
ENORESTARGET No tag found that was able to satisfy 2.2.1
But maybe this has to do something with some registry. I am relative new to bower.
Nope - that's not you. Its something wrong with the deploy repo.
I'll look into it and post back when i understand what has gone wrong.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.