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.
It looks like you're new here. If you want to get involved, click one of these buttons!