[SearchPanes]: Different behaviour for serverSide: true/false
[SearchPanes]: Different behaviour for serverSide: true/false
pgerundt
Posts: 90Questions: 13Answers: 2
in SearchPanes
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
totalvalue - The other search panes only showing the filter options available for the filtered list; the
totalandcountvalue 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
totalandcountvalue is displayed
Is this a desired behaviour?
This discussion has been closed.
Replies
It's because your server-side script isn't returning the expected data. if you look at this example here, the
countproperty for each of the SearchPanes is > 1, meaning they'll be shown. In your example, thecountis 1 for the elements that are shown, and 0 for those that aren't, hence why they're removed.Colin
Hi @colin ,
thank you so much for your support. That explains a lot and we will modify our serverside scripts accordingly.
Pascal