Pagination server side still used datatable limit offset

Pagination server side still used datatable limit offset

reikireiki Posts: 46Questions: 11Answers: 0

hey i have my own filter to LIMIT and OFFSET for the query but datatable still add that into the last query making it theres 2 LIMIT and OFFSET is there a way to disable that ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    If you have server-side processing enabled, then yes, Editor's server-side libraries will always add those properties. You would need to edit the code in the library to disable that if you wanted to add it yourself (although, wouldn't you just be adding the same values? Otherwise that would mess up the client-side paging controls).

    What server-side libraries are you using - PHP, .NET or Node.js?

    Allan

  • reikireiki Posts: 46Questions: 11Answers: 0

    Iam using php for this

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    This is the line to comment out if you wanted to specify your own offset / limit.

    I'm still not clear on how this would interact with DataTables paging though?

    Allan

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Just realised from your other thread that you aren't using our PHP libraries but rather yajra's. You'd need to contact them to find out how to do it in their libraries as they are not written or supported by me.

    Allan

  • reikireiki Posts: 46Questions: 11Answers: 0

    okay thanks alot allan

Sign In or Register to comment.