[SearchPanes]: API initialisation with serverSide: true

[SearchPanes]: API initialisation with serverSide: true

pgerundtpgerundt Posts: 90Questions: 13Answers: 2

Following the example
https://datatables.net/extensions/searchpanes/examples/initialisation/api.html
the API initialisation with serverSide: true seems not to work.

Here is the test case:
http://live.datatables.net/jirezici/1/edit?js,output

When init SearchPanes on document ready event, only the message 'Loading search panes...' is shown.

When init SearchPanes on init.dt event, the search panes are shown but empty.

But adding the dom and buttons option makes everything work fine:
http://live.datatables.net/jirezici/2/edit?js,output

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Thanks for flagging this up and also the test case :). You are right, SearchPanes wasn't considering the possibility that the initial Ajax request has already been processed. I've committed a fix which will be in the nightly shortly.

    It should be noted though, that when using this method of initialisation the SearchPane parameters sent to the server cannot be included in the initial Ajax request. That may or may not be an issue for you.

    Allan

  • pgerundtpgerundt Posts: 90Questions: 13Answers: 2
    Answer ✓

    Hi @allan ,

    Fix applied, works perfect, thank you!
    Discussion can be closed.

    Pascal

Sign In or Register to comment.