[SearchPanes]: Different behaviour for serverSide: true/false

[SearchPanes]: Different behaviour for serverSide: true/false

pgerundtpgerundt Posts: 90Questions: 13Answers: 2

Test case:
http://live.datatables.net/metuteqe/6/edit?js,output

Behaviour with serverSide: false:

  • When selecting the first filter option, the other options of the search pane are still displayed (multi selection is possible); all filter options showing the total value
  • The other search panes only showing the filter options available for the filtered list; the total and count value is displayed

Behaviour with serverSide: true:

  • When selecting the first filter option, the search pane only shows the selected item (multi selection is not possible); the total and count value is displayed

Is this a desired behaviour?

Replies

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    It's because your server-side script isn't returning the expected data. if you look at this example here, the count property for each of the SearchPanes is > 1, meaning they'll be shown. In your example, the count is 1 for the elements that are shown, and 0 for those that aren't, hence why they're removed.

    Colin

  • pgerundtpgerundt Posts: 90Questions: 13Answers: 2
    edited June 2022

    Hi @colin ,

    thank you so much for your support. That explains a lot and we will modify our serverside scripts accordingly.

    Pascal

Sign In or Register to comment.