Ajax request twice

Ajax request twice

hendrikwjyhendrikwjy Posts: 5Questions: 0Answers: 0

Hi,
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?

Thanks

Replies

  • allanallan Posts: 43,572Questions: 1Answers: 5,708 Site admin

    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

  • elfsundaeelfsundae Posts: 1Questions: 0Answers: 0

    @allan How can I install nightly version via NPM? I tried github:DataTables/Dist-DataTables-Responsive-Bootstrap but this issue is still not fixed.

  • allanallan Posts: 43,572Questions: 1Answers: 5,708 Site admin

    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.

    Allan

Sign In or Register to comment.